Forum Moderators: bakedjake

Message Too Old, No Replies

who to config ntp server

for sync only

         

Xuefer

3:59 pm on Jun 11, 2003 (gmt 0)

10+ Year Member



just wanna sync with other server
hwo to config ntp to do this work?
i've read so much manual but still can't get a sure answer

the ntp.conf:
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
which should i change?
what exact function does "server" and "fudge" have

Xuefer

4:14 pm on Jun 11, 2003 (gmt 0)

10+ Year Member



and i just wanna sync to a remote ntp server

anyone who familiar to ntp? help me pls
thank you

======
finally found a useful url: [akadia.com...]

still trying...

Mohamed_E

10:37 pm on Jun 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check out [webmasterworld.com...] especially msg #4.

Xuefer

2:00 am on Jun 12, 2003 (gmt 0)

10+ Year Member



i already know ntpdate can do the work
however, it set the time by a long hop, that make so many daemon freeze :(

and now i configured ntpd server
but i failed to make it change time a bit by a bit
all users in my IRC get ping timedout
however, the time is correct now
and i still can't quite get how to avoid big time correction

drbrain

9:33 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have two or more servers listed, and if you have any other boxes in your network, have them peer each other. Make sure you have a driftfile, and that ntp can write to it, especially if your machine reboots alot.

What kind of hardware (motherboard, CPU) are you running ntpd on, and what kind of load does the box have? ntpd requires a good deal of calculation to ensure that it doesn't drift too much.

An example /etc/ntp.conf

server timeserver.some.nearby.edu
server timeserver.some.other-nearby.edu
server timeserver.some.other-other-nearby.edu

peer localmachine1
peer localmachine2

driftfile /etc/ntp.drift

drbrain

9:42 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh, and pick an NTP server from this list that is in your region:

[eecis.udel.edu...]

If you don't pick one that is in your area, you'll just get a jumpier clock, and annoy a server admin on the far end.

Xuefer

2:31 am on Jun 14, 2003 (gmt 0)

10+ Year Member



thx drbrain, what's the point to add more than 1 server?
and what's the different between stratum 1 and 2?
i used 1 server from stratum 1 (and i'll adjust the config if i know what i'm doing)
and again, what's the keypoint to avoid long time jumping?