[SLUG] NTP

From: Doug Koobs (dkoobs@dkoobs.com)
Date: Tue May 27 2003 - 11:37:37 EDT


I've noticed that the time on my mail server drifts a lot... So, I'm
configuring NTP to keep it accurate. Here is the output of ntpq -p:

      remote refid st t when poll reach delay offset
======================================================================
*LOCAL(0) LOCAL(0) 10 l 241m 64 377 0.000 0.000
  sushi.compsci.l 0.0.0.0 16 u - 1024 0 0.000 0.000
  ns1.usg.edu 0.0.0.0 16 u - 1024 0 0.000 0.000

I cut off the "jitter" column to make it more readable... But, from
looking at the "when" column, I'm not receiving responses from the NTP
servers I've selected.

If I kill the ntpd service, and run ntpdate, here's what I get:

# ntpdate ns1.usg.edu
27 May 11:17:01 ntpdate[1693]: step time server 198.72.72.10 offset
-2.997164 sec

I get a similar repsonse from the sushi.compsci.lyon.edu server, so I
know I can connect to the NTP servers... Here are all the uncommented
lines my ntp.conf file:
############################################

restrict default ignore

restrict 127.0.0.1

server sushi.compsci.lyon.edu
server rolex.usg.edu

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

driftfile /etc/ntp/drift
broadcastdelay 0.008

keys /etc/ntp/keys
#############################################

( ns1.usg.edu and rolex.usg.edu both resolve to the same IP address )

the command "ps aux | grep ntp" shows that ntpd is started like this:
ntpd -U ntp -g

What am I missing? I've got UDP port 123 open on the firewall. I've
looked at a few sample ntp.conf files floating around, and can't find
where I've gone wrong. I'm running RH9, and ntp-4.1.2-0.rc1.2.

Thannks!

Doug



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:20:02 EDT