1830031 Members
2631 Online
109998 Solutions
New Discussion

synchronize time wih NTP

 
SOLVED
Go to solution
szhiyong
Frequent Advisor

synchronize time wih NTP

Hi,

I want to synchronize the time in my workstation with NTP. I have some question:
1. Where is NTP server?
2. How to configure?

Would someone please help me?

Thanks a lot for your help!

Zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
4 REPLIES 4
Sachin Patel
Honored Contributor
Solution

Re: synchronize time wih NTP

add following two line on /etc/ntp.conf file.

server 192.5.41.40 #tick.usno.navy.mil

driftfile /etc/ntp.drift

then
#touch /etc/ntp.conf
Then
Start ntp daemon and your server is setup
#/usr/sbin/xntpd

to make sure it start at boot time edit /etc/rc.config.d/netdaemons file and replace
export XNTPD=0
with
export XNTPD=1

to verify
#ntpq -p

Sachin
Is photography a hobby or another way to spend $
Tim D Fulford
Honored Contributor

Re: synchronize time wih NTP

I do not have a HP box near by to answer your question, so this is all from my memory...

1 - Where is NTP server. Usually this would come from web, or you can buy a really accurate clock. But usually you just pick a few servers and let them come to a consesnus (you could pick one server as the master if you wish, but how do you know it is correct). I think the time servers are split into "stratums" (not too sure if this is the word) to share out the load.
Stratum1 ==> biggest most accurate atomic clock, I believe it is in Grenwitch
stratum2 ==> refere to stratum 1, usually a web clock
stratum3 ==> refers to stratum2, (I'm now starting to fog up).

2 man xntp and or ntp.conf read it there, but basically it goes something like this...
edit /etc/rc.config.d/xntp & make NTP=1
edit /etc/ntp.conf appropriately
/sbin/init.d/xntp start

Tim
-
MANOJ SRIVASTAVA
Honored Contributor

Re: synchronize time wih NTP

szhiyong
Frequent Advisor

Re: synchronize time wih NTP

Hi,

Thanks for your help. All the discussion is really helpful to me.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing