Windows Server TechCenter > Windows Server Forums > Management > debian sync time with NTP server on win2003 , time does not synch after i changed win2003 time?
Ask a questionAsk a question
 

Proposed Answerdebian sync time with NTP server on win2003 , time does not synch after i changed win2003 time?

  • Tuesday, November 03, 2009 3:19 AMhermit_yang Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     


    I set up my win2003 server as a NTP server. this machine is not in the local domain.
    With regedit set w32time parameters:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type     "NTP"

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags  "5" (decimal) 

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\Enable   1

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer    "IP,0x1"

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\LocalClockDispersion "0"

    Then I restart w32time service and sync my debian system to this win2003 server.
    It is successfully.
    Then, I changed win2003 server time back 2 min. leave my debian running, after 2 days, time does not synched.
    The offset is increasing...

    Does that mean that  I should not change my NTP server's time manually? Or something wrong with my debian??

All Replies

  • Tuesday, November 03, 2009 6:12 AMGunner999 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer

    Any events in the Event Logs?

    What is this setting, "IP,0x1"?  This setting should point to your external NTP server.  And is best configured using the following command

    net time /setsntp:tick.clock.com

    Microsoft implement Simple NTP (SNTP) not full NTP.  Verify Debian supports SNTP.

    Its best to test time changes from the client, not the time source.  Change the time on the Debian computer, and then Start and stop the debian time service to resync with the time source server.  Verify the NTP configure of the debian client.

    • Proposed As Answer byGunner999 Saturday, November 07, 2009 4:39 PM
    •  
  • Wednesday, November 04, 2009 3:09 AMhermit_yang Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    What is this setting, "IP,0x1"?  This setting should point to your external NTP server.  And is best configured using the following command

    This "IP,0x1"is  the NTP server's IP, I use the NTP server of our my company

    I want to check if there is time wrong with my NTP server,e.g my NTP server time changed, disconnected, after the server restart, my debian can sync time with it normally.

    My debian is in a CF card, so no telnet. no screen....