Re: Setting Up NTP for Time Sync

From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 01/05/05


Date: Wed, 05 Jan 2005 21:41:39 GMT

W. Watson wrote:
> W. Watson wrote:
>
>> I have read the other posts to mine, and will look at some of things
>> mentioned. Since I posted the original a few hours ago, a few things
>> of interest have occurred.
>>
>> I discovered the need to put the "server 192.168.0.3" in my ntp.conf
>> file, as mentioned by a few posters. The IP address is for the XP
>> machine, solarblast. 192.168.0.1 is for the Linux box, astropc2004. I
>> then reset the clock and date through the RHL9 calendar icon on the
>> panel of the desk top to be very far off the real time/date. I then
>> used it again to fire up ntp, using a check box on the dialog, to get
>> the info from the XP. A small "Waiting" dialog appeared for about 10
>> seconds, and then the calendar/date dialog disappeared. No change in
>> date or time. I found this a bit odd, since if I fire up W2k on the
>> Linux box, I can set its time from XP.
>>
>> After some more Googling, I found that the LocalNTP entry in XP's
>> registry should be set to binary 1. Mine was binary 0. I then repeated
>> the above on Linux, but still nothing. Perhaps I needed to boot XP.
>> Haven't tried that yet. Setting the value to 1 is still a little
>> perplexing because W2k had no trouble with the sync.
>>
>> I see a few people suggested a SIGHUP. I'm sort of a rookie at this,
>> but I think that means basically to restart NTP on Linux. I'll do that
>> and reboot XP and report back.
>>
> Well, the XP boot and the ntp restart didn't change a thing. Linux
> didn't sync its time with XP.
>

ntpd does not step the time if it is far off.

Use ntpdate to coarse sync the Linux box before
starting the ntp daemon.

If you still have problems, run tcpdump for UDP
port 123 to see if messages are exchanged. For
decoded messages, use Ethereal instead of tcpdump.

-- 
Tauno Voipio
tauno voipio (at) iki fi


Relevant Pages

  • Re: Setting Up NTP for Time Sync
    ... > Why can't I synch off of the NTP machine from linux? ... that you don't get time corrections from your XP. ... added knowledge of NTP sync working with another source. ... Holmes and Watson went for a night out camping. ...
    (comp.os.linux.networking)
  • Re: Changing a Binary Value in the Registry? (Topic Tilt to NTP)
    ... > Are you running an NTP server on the Windows host (to which the Linux ... > around (the Windows host gets the sync from the NTP server on the Linux ...
    (microsoft.public.windowsxp.general)
  • Re: Setting Up NTP for Time Sync
    ... > Linux box, I can set its time from XP. ... > I think that means basically to restart NTP on Linux. ... Wayne T. Watson ...
    (comp.os.linux.networking)
  • Re: ntp linux daemon drift apart from Windows Net Time Server
    ... can I synchronize to a Windows 2003 SP1 from my linux ... Possibly none, since w32tm does not offer an NTP server, so NTP clients ... will not be able to sync to it. ...
    (comp.protocols.time.ntp)
  • Re: Setting Up NTP for Time Sync
    ... the XP boot and the ntp restart didn't change a thing. ... >> didn't sync its time with XP. ... > Use ntpdate to coarse sync the Linux box before ...
    (comp.os.linux.networking)