On 2004 09 20 (Monday) 08:18, Mike McMullen wrote:
Hi All,
I am trying to get ntp to sync with an ntp server without much luck on FC2.
I have the following servers defined in /etc/ntp.conf
server time.nist.gov prefer server ns.arc.nasa.gov prefer server tick.usno.navy.mil prefer
My FC2 system time is set within one minute of two other servers I have using ntp; one RH7.3 and another FC1.
I've set the FC2 time by hand. When I start ntp I see the following message in my /var/log/messages log.
Sep 19 22:12:29 www ntpd[3183]: ntpd 4.2.0@1.1161-r Thu Mar 11 11:46:39 EST 2004 (1) Sep 19 22:12:29 www ntpd[3183]: precision = 1.000 usec Sep 19 22:12:29 www ntpd: ntpd startup succeeded Sep 19 22:12:29 www ntpd[3183]: no IPv6 interfaces found Sep 19 22:12:29 www ntpd[3183]: kernel time sync status 0040 Sep 19 22:12:30 www ntpd[3183]: frequency initialized 0.000 PPM from /var/lib/ntp/drift
Any insight appreciated!
Mike
Try this ntp.conf: --- cut --- # Prohibit general access to this service. restrict default ignore # Permit all access over the loopback interface. restrict 127.0.0.1 # -- CLIENT NETWORK ------- # restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap # --- OUR TIMESERVERS ----- server SERVER(s).IP.ADDR.HERE restrict SERVER(s).IP.ADDR.HERE mask 255.255.255.255 nomodify notrap noquery
# --- GENERAL CONFIGURATION --- # Undisciplined Local Clock. server 127.127.1.0 fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift broadcastdelay 0.008 #authenticate yes #keys /etc/ntp/keys --- cut --- And add one/some of the NTP servers you'll use in /etc/ntp/step-tickers. These are used to synchronize at ntp start (with ntpdate by the rc script).