Why won't NTP synchronize?

Kevin O'Gorman kevin
Mon May 17 11:57:30 PDT 2004


I've been trying to get NTP (Network Time Protocol) working on my
home machine.  I had it before, but I just can't get it working
since I upgraded some time ago to RH 7.3.  The odd thing is that
I have 7.3 using NTP at work....

Anyway, I have servers configured in /etc/ntp.conf, and I can
start the ntpd daemon using /etc/rc.d/init.d/ntpd

Then I get this status from "ntpq -p", and it never changes, nor
does the time get updated (I've obscured the server names and IPs):

[root at treat init.d]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        LOCAL(0)        10 l   58   64  377    0.000    0.000   0.015
 server1         0.0.0.0         16 u    -  128    0    0.000    0.000 4000.00
 server2         0.0.0.0         16 u    -  128    0    0.000    0.000 4000.00
[root at treat init.d]#


Now, I am running a firewall using ipchains, and I've trained it to log
the NTP packets it lets come in, and I see stuff like

Dec 28 13:54:05 treat kernel: Packet log: input ACCEPT eth1 PROTO=17 <server1>:123 64.166.164.49:123 L=76 S=0x00 I=43584 F=0x0000 T=48 (#10)
Dec 28 13:54:07 treat kernel: Packet log: input ACCEPT eth1 PROTO=17 <server2>:123 64.166.164.49:123 L=76 S=0x10 I=64283 F=0x0000 T=47 (#9)

So I'm getting replies from my servers.  Why am I not getting a time sync?

++ kevin



-- 
Dr. Kevin O'Gorman  (805) 756-2986  mailto:kogorman at calpoly.edu
Home Page: http://www.csc.calpoly.edu/~kogorman



More information about the Linux-users mailing list