Never mind: was Re: Why won't NTP synchronize?
Alma J Wetzker
almaw
Mon May 17 11:57:31 PDT 2004
Kevin O'Gorman wrote:
> I'd been doing without NTP for months and months. Sending this email
> caused me to fool with it a bit more, and the solution emerged:
> I hadn't realized that the "restrict" command requires a host IP
> number, and that a hostname will not do. Accordingly, all servers
> were getting the default treatment, rendering them useless.
>
> I put in host IP numbers, and all is well. Sorry to bother you.
>
> ++ kevin
>
>
>
> On Sun, 28 Dec 2003, Kevin O'Gorman wrote:
>
>
>>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
I just started tinkering with ntp. The solution posted is "timely" and
useful. Thanks.
-- Alma
More information about the Linux-users
mailing list