Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2004 20:37:03 +0100
From:      Federico Galvez-Durand Besnard <Federico.Besnard@bluewin.ch>
To:        dtalk@u.washington.edu
Cc:        freebsd-stable@freebsd.org
Subject:   Re: clock running fast
Message-ID:  <41D458DF.3020706@bluewin.ch>
In-Reply-To: <20041230110953.T17743@atlantis.flyingjoke.org>
References:  <41D43A7A.2000500@bluewin.ch> <20041230110953.T17743@atlantis.flyingjoke.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Set /etc/localtime to your correct timezone before doing anything in 
your machine.
Remove /var/db/ntpd.drift before you reboot or restart your ntpd.

This is what I use in /etc/rc.conf:
+++
ntpd_enable="YES"               # Run ntpd Network Time Protocol (or NO).
ntpd_program="/usr/sbin/ntpd"   # path to ntpd, if you want a different one.
ntpd_flags="-p /var/run/ntpd.pid -f /etc/ntp/drift -l /var/log/ntp.log"
+++

Check ntpd messages with dmesg.

If it does not work, this is one ntp.conf (change server to 
time.u.washington.edu or whatever is closer to you) that worked well for me:

+++++ BEGIN /etc/ntp.conf +++++++
# NTP configuration file
#
# Thu Nov 11 20:06:40 GMT+1 2004

restrict        192.168.1.0     mask 255.255.255.0 notrust nomodify notrap
restrict        127.0.0.1

# servers to query
#-------------------

server          clock.tix.ch

restrict        clock.tix.ch        mask 255.255.255.255 nomodify notrap 
noquery

+++++ END /etc/ntp.conf +++++++

Once you get synchronised with your time-server, you can consider 
changing minpoll  maxpoll to polite values.

Fico//

David Talkington wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Federico Galvez-Durand Besnard wrote:
>
>> what do you have in :
>> /etc/ntp.conf
>
>
> Only:
>
> server         time.u.washington.edu
> server          127.127.1.0 fudge           127.127.1.0 stratum 10
>
>
> Command line:
>
> /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid \
> - -f /var/db/ntpd.drift
>
> Thank you ... -d
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41D458DF.3020706>