NTP Client synchronization with a Windows 2003/2008

krad kraduk at googlemail.com
Tue Oct 13 16:03:25 UTC 2009


2009/10/13 Jacques Henry <caramba696 at googlemail.com>

> Hello,
>
> I am using a System based on FreeBSD 6.3.
> On this System an automatically generated ntpd.conf file is generated in
> order to synchronize the System clock with a NTP Server. I want to use a
> Windows 2003 or 2008 Server to act as the NTP Server. On the Windows System
> the NTP Server (Windows Time Service) is *correctly* running. The thing is
> that even if there are NTP traffic between the client and the Server (NTP
> Client and Server IP packet), My FreeBSD is not synchronizing at all:
>
> freebsd-client>ntpq -p 127.0.0.1
>     remote           refid      st t when poll reach   delay   offset
> jitter
> =======================================================
>  NTP_server      192.168.10.6     2 u  103 1024    1    1.037  -587367
> 0.002
>
>
> As you can see the offset is huge and never decreases as in a normal way...
>
> My ntpd.conf file looks like:
> -----------
> # File is automatically generated
> # Do not edit
> tinker panic 1
> tinker step  1
>
> # ntp servers list
> server 172.30.1.5
>
> # files informations
> driftfile       /etc/ntp.drift
>
> # restriction informations
> restrict default ignore  # do not allow request by default
> restrict 127.0.0.1       # allow localhost for debugging
> restrict 172.30.1.5     nomodify
> ------------
>
> my ntp.drift file
> ------------
> -101.101
> ------------
>
> I know that maybe the Microsoft NTP/SNTP implementation is not
> RFC-compliant, but is there a way to configure my NTP client in a more
> "compatible" (less strict) way to adjust its time with a Windows Server?
>
> Thanks
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


ntpd wont resync if the time difference is to big, as it assumes something
is wrong as you would have set the system clock roughly correct. To fix stop
ntpd, then do an ntpdate against the server. This should set the time. Now
run ntpd again

also set the following variables to a server of your choosing to make sure
ntpdate is run 1st on boot

$ grep ntp /etc/rc.conf*
/etc/rc.conf:ntpdate_flags="uk.pool.ntp.org"
/etc/rc.conf:ntpdate_enable="YES"
/etc/rc.conf:ntpd_enable="YES"


More information about the freebsd-questions mailing list