Setting up NTP in FreeBSD
System clocks are poor at best. There's lots of reasons for this, most which I don't really understand. Anyway, the best way to prevent from time drift is to setup NTP:
edit /etc/ntp.conf with:
server 0.north-america.pool.ntp.org prefer
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
driftfile /var/db/ntp.drift
restrict default ignore
set the service to activate on restart in /etc/rc.conf:
ntpdate_enable="YES"
restart the machine
edit /etc/ntp.conf with:
server 0.north-america.pool.ntp.org prefer
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
driftfile /var/db/ntp.drift
restrict default ignore
set the service to activate on restart in /etc/rc.conf:
ntpdate_enable="YES"
restart the machine



0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home