Ntp Client

Bruce McDonald brucemcdonal at mindspring.com
Fri Feb 20 00:39:24 UTC 2004


<Big Snip>

Rick's imparted knowledge:

> Ok, let's try something simple.  Try:

>     tcpdump port 123

>> in one window, then stop and restart xntpd.  Verify that you actually
>> see traffic.  If not, you might try turning off iptables and trying
>> again.  If it works the second time, look higher up in your iptables
>> to see if you have a block before your "--dport 123 -j ACCEPT" lines.

> Due to the way PPPoE works with DSL, I needed to type tcpdump -i PPP0 port
> 123

> Thanks Rick, you once again caused me to think in the right direction to
> find where a problem lies.

> Now I can see traffic.  And the clock is correct, so I guess I will let it
> run and see if it drifts by a significant amount in the next couple of
> days.  Interestingly, the drift file says 0.00; I find that hard to
> believe.  I think I'll have to delete it and restart ntpd to recalculate
> the drift.

Whoops, I forgot to give any of the tcpdump info.  Here is a snippet:

15:58:17.313929 my.assigned.ip.ntp > 204.34.198.40.ntp:  v4 client strat 0
poll 4 prec -6 (DF)
15:58:17.372567 204.34.198.40.ntp > my.assigned.ip.ntp:  v4 server strat 1
poll 4 prec -19 (DF)
15:58:18.313660 my.assigned.ip.ntp > 204.34.198.40.ntp:  v4 client strat 0
poll 4 prec -6 (DF)
15:58:18.371575 204.34.198.40.ntp > my.assigned.ip.ntp:  v4 server strat 1
poll 4 prec -19 (DF)
15:58:30.413835 my.assigned.ip.ntp > 63.247.194.250.ntp:  v4 client strat 0
poll 6 prec -16 (DF) [tos 0x10] 
15:58:30.477898 63.247.194.250.ntp > my.assigned.ip.ntp:  v4 server strat 2
poll 6 prec -17 (DF)

Also, when I restarted ntpd it read:

Shutting down ntpd:                                         [   OK   ]
ntpd: Synchronizing with time server:            [FAILED]
Starting ntpd:                                                   [   OK   ]

I hope the failed is not an evil omen.

Regards,
Bruce McDonald





More information about the Redhat-install-list mailing list