[Date Prev][Date Next][Date Index]
[etc] Howto Synchronize two machines
Hi,
It seems that our ntp server on the experimental network is not working.
So I synchronized the clock of 'ntttest' with EVL's clock via 'alpha'.
The distribution of the time is as follows.
EVL's ntp -> alpha -> ntttest
Probably, it takes a few hours to stabilize this synchronization.
And the followings are instructions for setting ntp on FreeBSD 2.X.
(1) edit the lines associated with 'ntp' in /etc/rc.conf
xntpd_enable="YES" # Run xntpd Network Time Protocol (or NO).
xntpd_program="xntpd" # path to xntpd, if you want a different
one.
xntpd_flags="-p /var/run/xntpd.pid" # Flags to xntpd
tickadj_enable="YES" # Run tickadj (or NO).
tickadj_flags="-Aq" # Flags to tickadj (if enabled).
(2) edit /etc/ntp.conf ( configuration file for xntpd )
server 131.193.48.81 # ( is a ntp server )
peer 127.127.1.0 # ( see below )
driftfile /var/run/ntp.drift # ( drift file )
** if the command 'peer 127.127.1.0' is set, xntpd uses local clock
when the server's clock is not available.
If you want to configure a PC just as an ntp client, this is not
needed.
(3) reboot
(4) wait 5-10 minutes until the xntpd get stable.
that's it.
akihiro