3 questions about NTP server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers 3 questions about NTP server
# 1  
Old 04-07-2008
Power 3 questions about NTP server

Folks;
I'm setting up a new NTP server to sync time for our network. I have one Linux server that needs to point to that NTP server
My 3 questions are:

1. I added the IP address for the NTP server to the "/etc/hosts" file on the Linux server. Is that all i need to do to make the Linux server point to the NTP server?

2. After pointing the Linux server to the NTP server, do i need to reboot the Linux server or restart any daemon on the Linux server? in other words, what do i need to do to make sure the changes i made in the "/etc/hosts" took affect?

3. Is there a way to test the NTP server to make sure it interact with the Linux server & will work fine if i have a timing issue on the Linux server? I want to test it so if something happens for real i don't look like a dummy

Thanks Folks in advance
# 2  
Old 04-07-2008
What do you mean by "point to"? The alias in /etc/hosts will let you refer to the server by the name you put in /etc/hosts instead of the IP address but this is not strictly necessary; you could simply set up your NTP client to connect by IP address, although of course it's a good habit to have a name for the server.

If you have an ntp client running continuously then it will likely need to be nudged to reread its configuration. Many daemons have a way to reinitialize without having to actually shut it down completely, often by sending a SIGUSR1, but read the documentation for whatever you are running.

You seem to be missing the step where you find out what NTP client software you are running, and read its documentation to see how you tell it which NTP server to use. That should also give some hints for your third question.

If you have ntpdate, it can be run with a diagnostic option which tells you which server it connected to and what the result was. If you are on Debian or Ubuntu, note the difference between ntpdate and ntpdate-debian
# 3  
Old 04-07-2008
When i said point to i meant they can talk to each other (in other word i want the client on the Linux box to be able to talk to the NTP server.
That's why i was asking about how to add the NTP server to the Linux box as a trusted host.

one more question i have now:
Should i add NTP server IP address to the ntp.conf file on the Linux box?
# 4  
Old 04-08-2008
If by "trusted" you mean you have hosts.deny or firewall rules or something, then you still need to tell us more about those.

Now that you have it in /etc/hosts and have checked that you can ping by name (you have, yes?) it's probably better to put in the host name from /etc/hosts
# 5  
Old 04-08-2008
Sorry if my questions weren't clear.
let me clarify it a little more.
What should i do to connect a Linux server to NTP server?
# 6  
Old 04-08-2008
If you've done all which is listed here, and it doesn't work, maybe you can elaborate on what does work. Can you ping the server? Can you run ntpdate and see that you connect to it?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

What is the best OS for NTP server?

Hello I need to create NTP server for all my devices, What is the best OS for NTP Server? "CentOS, Redhat, Ubuntu " I tried before Ubuntu but some of device not detect the server Need your recommendation Thank you (2 Replies)
Discussion started by: moudmm
2 Replies

2. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

3. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

4. Linux

Questions about the NTP time server sync

Hi folks, I have developed a Linux server for my customer. After migrating the server to my customer site, I was trying to sync its time to the NTP time servers at my customer site. Below is the ntp.conf: % vi /etc/ntp.conf # Permit time synchronization with our time source, but do not # permit... (2 Replies)
Discussion started by: kimurayuki
2 Replies

5. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

6. Red Hat

NTP server

Hi All.... I need to configure NTP server in my network, which is heterogeneous, containing Linux as well as windows systems. I'm planning to configure it on RHEL 5.0. What are the prerequisites for this and do I need to register this server? Can anyone give me as many information as... (1 Reply)
Discussion started by: Amol21
1 Replies

7. IP Networking

server is not getting synchronized with ntp server

Hello Guys, i have a problem my local server is not getting synchronized with ntpd server. 1)ntpq -p is giving the following output remote refid st t when poll reach delay offset jitter ============================================================================== ... (9 Replies)
Discussion started by: mannam srinivas
9 Replies

8. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies

9. Linux

newbie questions on ntp and routes

RH 7.2 I have 2 unrelated questions - 1.) I have been able to configure and run ntp but cannot figure out how to start the service upon reboot. I have read the man pages for ntsysv - this is a manual action, but I want to drop a tarball of config files on a new installation and cannot... (1 Reply)
Discussion started by: jalburger
1 Replies

10. UNIX for Advanced & Expert Users

Ntp Server

Hi. i was wondering if anyone can show me or direct me on setting up a ntp server under redhat.. Is there any howtos so i can get familar to it "any good sites" (3 Replies)
Discussion started by: souldier
3 Replies
Login or Register to Ask a Question