Time Synchronizing Between Two Servers

Dag-Erling Smørgrav des at des.no
Thu May 3 19:20:43 UTC 2007


Chuck Swiger <cswiger at mac.com> writes:
> Simply setting the date upon system boot and maybe once a day using
> cron to call ntpdate or whatever is probably good enough for any
> client machine, and OK for non-important servers where the exact
> timekeeping doesn't matter much.

Why, when setting up ntpd is so easy?

On your router:

# hostname
router.example.com
# cat >/etc/ntp.conf
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
^D
# cat >>/etc.rc.conf
ntpdate_enable="YES"
ntpd_enable="YES"
^D
# /etc/rc.d/ntpdate start
# /etc/rc.d/ntpd start

On every other machine in your network:

# cat >/etc/ntp.conf
server router.example.com
^D
# cat >>/etc.rc.conf
ntpdate_enable="YES"
ntpd_enable="YES"
^D
# /etc/rc.d/ntpdate start
# /etc/rc.d/ntpd start

Everything else is already taken care of.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-questions mailing list