NTPd on FreeBSD 8.0

Lars Sommer, [email protected], 2009-10-06

DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining.

I'm using NTP on all machines with internet connection, to keep their clock 
 more accurate.

Remember to run tzsetup to set up correct time zone, before NTP'ing.

Do a manually sync if needed:
ntpdate -v -b 0.us.pool.ntp.org

Insert in /etc/rc.conf:
ntpdate_enable="YES"
ntpdate_hosts="0.us.pool.ntp.org"
ntpd_enable="YES"

#The following is confirmed in freebsd8.2 at 2011-04-19
#Note from 2009-01-07: As by FreeBSD 7.1 ntpd should be able to run without the following config file
#ntpd will need a config file at /etc/ntp.conf, looking like:
#server 0.us.pool.ntp.org
#server 1.us.pool.ntp.org
#server 2.us.pool.ntp.org
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
#driftfile /var/db/ntp.drift

Leave a Reply

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *