[ntp:questions] Help -- Problem Syncing With time.nrc.ca
Rob
pse at nospam.com
Sun Sep 30 13:50:04 UTC 2007
I have a linux box and a Mac OS X box behind a router using the same
external IP address. Both computers use NTP to sync with time.nrc.ca and
time.chu.nrc.ca (as well as one other NTP time server).
My Mac OS X machine has no problems connecting or syncing to either
time.nrc.ca or time.chu.nrc.ca.
But my Linux box gets a Kiss of Death (kod) packet (".INIT.") when trying
to connect or sync to time.nrc.ca. (I can connect and sync to
time.chu.nrc.ca).
time.nrc.ca and time.chu.nrc.ca are set up exactly the same way in
my config file /etc/ntp.conf.
I am using ntpd version Ver. 4.2.4p4 on my Linux box.
I don't see anything strange in my log file -- /var/log/ntp.log.
Does anyone know what is going on?
Why can my Mac machine using the same external IP address as my Linux
machine connect to time.nrc.ca but my Linux box cannot?
Below are some outputs from ntpq. Later I also show my config file.
Rob
----------------
[rob at myarch ~]$ ping -c 1 time.nrc.ca
PING time.nrc.ca (132.246.168.148) 56(84) bytes of data.
64 bytes from time.nrc.ca (132.246.168.148): icmp_seq=1 ttl=52 time=15.1 ms
--- time.nrc.ca ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 15.182/15.182/15.182/0.000 ms
[rob at myarch ~]$ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
time.nrc.ca .INIT. 16 u - 128 0 0.000 0.000 0.000
+time1.chu.nrc.c 209.87.233.51 2 u 59 64 377 33.311 17.614 55.698
*ecmail2.cmc.ec. 142.135.6.200 2 u 50 64 377 12.389 15.078 2.980
[rob at myarch ~]$
[rob at myarch ~]$ ntpq
ntpq> assoc
ind assID status conf reach auth condition last_event cnt
===========================================================
1 37351 8000 yes yes none reject
2 37352 9414 yes yes none candidat reachable 1
3 37353 9614 yes yes none sys.peer reachable 1
ntpq> rv 37351
assID=37351 status=8000 unreach, conf, no events,
srcadr=time.nrc.ca, srcport=123, dstadr=192.168.1.26, dstport=123,
leap=11, stratum=16, precision=-18, rootdelay=0.000,
rootdispersion=0.000, refid=INIT, reach=000, unreach=25, hmode=3,
pmode=0, hpoll=8, ppoll=10,
flash=1600 peer_stratum, peer_dist, peer_unfit, keyid=0, ttl=0,
offset=0.000, delay=0.000, dispersion=15937.500, jitter=0.000,
reftime=00000000.00000000 Thu, Feb 7 2036 1:28:16.000,
org=00000000.00000000 Thu, Feb 7 2036 1:28:16.000,
rec=00000000.00000000 Thu, Feb 7 2036 1:28:16.000,
xmt=caaa239f.8de5bfe1 Sun, Sep 30 2007 9:31:11.554,
filtdelay= 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00,
filtoffset= 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00,
filtdisp= 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0
ntpq>
Here is my /etc/ntp.conf file:
[rob at myarch ~]$ cat /etc/ntp.conf
# NOTES:
# - you should only have to update the server line below
# - if you start getting lines like 'restrict' and 'fudge'
# and you didnt add them, AND you run dhcpcd on your
# network interfaces, be sure to add '-Y -N' to the
# dhcpcd_ethX variables in /etc/conf.d/net
# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server ntp.example.tld iburst
server time.nrc.ca iburst
server time.chu.nrc.ca iburst
server ntp2.cmc.ec.gc.ca iburst
# you should not need to modify the following paths
driftfile /var/lib/ntp/ntp.drift
#server ntplocal.example.com prefer
#server timeserver.example.org
# Warning: Using default NTP settings will leave your NTP
# server accessible to all hosts on the Internet.
# If you want to deny all machines (including your own)
# from accessing the NTP server, uncomment:
#restrict default ignore
# To deny other machines from changing the
# configuration but allow localhost:
# restrict default nomodify nopeer
restrict default ignore
restrict 127.0.0.1
restrict time.nrc.ca nomodify noquery nopeer
restrict time.chu.nrc.ca nomodify noquery nopeer
restrict ntp2.cmc.ec.gc.ca nomodify noquery nopeer
# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap
#
#
# Log File
#
logfile /var/log/ntp.log
More information about the questions
mailing list