strange ntpd problem in 6.0-RELEASE

Vincent Chen vctw at yahoo.com
Thu Dec 22 17:40:44 PST 2005


Hi, all

I have the following 2 line in my rc.conf

ntpd_enable="YES"
ntpd_flags="-c /etc/ntp.conf -p /var/run/ntpd.pid"

after system reboot, I can see ntpd running but 'ntpq -p' gives nothing. I have
to 'killall ntpd' and '/usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid'
manually to get the peers connected like this.

ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*clock.isc.org   204.123.2.5      2 u  360  512   37  179.512    1.236   4.032
+ntp-nasa.arc.na .GPS.            1 u  367  512   37  178.973    0.203   5.656
+time-a.nist.gov .ACTS.           1 u  361  512   37  245.621   -0.267   4.155
 220-130-158-52. 220.130.158.50   2 u  430  512   33   52.823    7.489   5.799
+220-130-158-51. 220.130.158.50   2 u  373  512   37   50.890    6.736   2.976
-220-130-158-71. 220.130.158.70   2 u  366  512   37   54.160    6.995   7.094

Why ntpd has no peers after system first boot? Maybe it's firewall issue, can I
configure ntpd trying to talk to peers again automatically until peers
connected?

my ntp.conf:

#
# servers in US
#
server clock.isc.org prefer
server ntp.nasa.gov
server time-a.nist.gov

#
# servers in Taiwan
#
server time.stdtime.gov.tw
server tick.stdtime.gov.tw
server tock.stdtime.gov.tw

driftfile /etc/ntp.drift



Thanks, 

Vincent

___________________________________________________  ³Ì·sª© Yahoo!©_¼¯§Y®É³q°T 7.0¡A§K¶Oºô¸ô¹q¸Ü¥ô§A¥´¡I  http://messenger.yahoo.com.tw/


More information about the freebsd-questions mailing list