SourceForge.net Logo

C.2. /etc/sysconfig/ntpd.conf

# GPL $Id: ntpd.conf,v 1.1.1.1 2005/02/28 18:22:49 cvonk Exp $
# configuration for Network Time Protocol client/server (ntpd)
#
# note that currently the clock is only synchronized at system startup
# (this to keep my dial-on-demand ISDN connection from staying up)

# prohibit general access
restrict default ignore

# allow systems on the lan/wifi to synchronize with us
restrict 10.0.1.0 mask 255.255.255.0
restrict 10.0.2.0 mask 255.255.255.0

# a time server that we use: time.nist.gov
#restrict 192.43.244.18 mask 255.255.255.255 nomodify notrap noquery
#server 192.43.244.18 maxpoll 15 iburst

# a time server that we use: router1.cybcon.com
#restrict 216.190.188.2 mask 255.255.255.255 nomodify notrap noquery
#server 216.190.188.2 maxpoll 15 iburst

# use our local clock as the master if all else fails
restrict 127.0.0.0 mask 255.0.0.0
server  127.127.1.0 prefer
fudge   127.127.1.0 stratum 10

# drift file.
driftfile /var/ntpd/drift  # path for drift file

Example C.2. /etc/sysconfig/ntpd.conf