NTP notes

http://www.cisl.ucar.edu/nets/intro/sta … s/ntp.html NTP (Pete’s notes) To get ntpd working, get a version that’s at or later than
ntp-stable-4.2.0a-20040617. Gunzip it, untar it, run ./configure,
make and make install. I couldn’t RPM-delete the ntp that’s
installed, so I hand-deleted all the ntp* binaries in
/usr/sbin. I know this isn’t optimal. Then I
hand-edited the /etc/init.d/ntpd, deleted the
/etc/sysconfig/ntpd, and made
/etc/sysconfig/iptables allow ntp packets. Then
I edited /etc/ntp/conf to camment out all the
lines except restrict mask
disable auth
I did
/etc/init.d/ntpd stop
/etc/init.d/ntpd start
,,,and waited a few minutes for the router’s broadcast packets to
be heard. Then I did ntpq and “peers” and saw the router listed.
One other possible problem: if your machine’s time is too far
out of sync with the router’s, ntpd won’t correct it. To force
synchronization, do “ntpdate mlra”.
The ntp.conf file has a section that configures
a fake driver. If you leave that on, you’ll see the “LOCAL”
peer. When you comment it out, ntpq “peers” will give

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.