Hello All,

I am new to NTP and i am not sure where to look at to solve this problem. I tried many options which were available on the internet and nothing has worked out so far. How can i make the NTP client to take the NTP server time ???


NTP client is on version 4 and NTP server is on version 3.

I ran ethereal and i find that always i get the time from the server but the client doesn't use the NTP servers for sychronization. How can i make it possible for the client to sync with the server ?????

First doubt
-----------
Are the port setting correct ? While setting the ip sec rules we have specified local port at 0 and remote port at 123. Direction is being set to IN.

I observe during ntp client restart the below port settings in ethereal ?
User Datagram Protocol: src port: 34505(34505), Dst port: ntp(123)

Second doubt
------------
Ethereal traces show the below during xntp restart
Peer Clock Startum: unspecified or unavailabe(0)

don't you think it should have been set to a valid ip ?


/************************************************** ***/
ntp.conf file appears as below
/************************************************** ***/
server 127.127.1.0
fudge 127.127.1.0 stratum 10
server 10.98.2.6 iburst
server 10.98.2.7 iburst
peer 192.17.0.25 #Comment: This is in a cluster and hence peer is being used.
driftfile /var/lib/ntp/drift/ntp.drift
disable stats
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
statsdir /var/ntp/ntpstats/
enable monitor stats
logconfig =syncall +clockall


/************************************************** ***/
output of npt restart
/************************************************** ***/
bsng23:~ # /etc/init.d/xntpd restart
Shutting network time protocol daemon (NTPD) done
Try to get initial date and time via NTP from 10.98.2.6 10.98.2.7 done
Starting network time protocol daemon (NTPD) done


/************************************************** ***/
ethereal traces during the ntp restart
/************************************************** ***/
From ntp client to ntp server
-----------------------------
Internet protocol: src: 10.98.4.10 Dst: 10.98.2.6
User Datagram Protocol: src port: 34505(34505), Dst port: ntp(123)
Network Time Protocol
- Flags: 0xe3
Leap Indicator: alarm condition (clock not synchronized) (3)
version number: NTP Version 4 (4)
Mode: client (3)
Peer Clock Startum: unspecified or unavailabe(0)
peer polling Interval: 4 (16 sec)
peer clock precision: 0.015625 sec
Root Delay: 1.0000 sec
clock dispersion: 1.0000 sec
Reference clock Id: unidentified reference sourc ''
Reference Clock update time: NULL
Originate Time stampe: NULL
Receive Time stamp: NULL
Transmit Time stamp: Oct 21, 2009 08:01:16.9991 UTC


From NTP server to NTP client
-----------------------------
Internet protocol: src: 10.98.2.6 Dst: 10.98.4.10
User Datagram Protocol: src port: ntp (123), Dst port: 34505(34505)
Network Time Protocol
- Flags: 0x1c
Leap Indicator: no warning (0)
version number: NTP Version 3 (3)
Mode: server (4)
Peer Clock Startum: secondary reference (2)
peer polling Interval: 4 (16 sec)
peer clock precision: 0.015625 sec
Root Delay: 0.0313 sec
clock dispersion: 10.1112 sec
Reference clock Id: 10.98.2.5
Reference Clock update time: Oct 21, 2009 08:00:51.2750 UTC
Originate Time stampe: Oct 21, 2009 08:01:16.9991 UTC
Receive Time stamp: Oct 21, 2009 08:01:16.9780 UTC
Transmit Time stamp: Oct 21, 2009 08:01:16.9780 UTC


/************************************************** ***/
Comands executed after 5 minutes of ntp client restart
/************************************************** ***/

bsng23:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
================================================== ============================
*LOCAL(0) LOCAL(0) 10 l 32 64 37 0.000 0.000 0.001
10.98.2.6 10.98.2.5 2 u 14 64 37 0.293 3.612 3.997
10.98.2.7 10.98.2.6 3 u 11 64 37 0.270 0.237 5.889
bsng123 LOCAL(0) 11 u 28 64 1 0.301 -0.157 0.001

bsng23:~ # ntpq -p 10.98.2.6
10.98.2.6: timed out, nothing received
***Request timed out

/************************************************** ***/
ethereal traces during the ntpq -p
/************************************************** ***/
From ntp client to ntp server
-----------------------------
Internet protocol: src: 10.98.4.10 Dst: 10.98.2.6
User Datagram Protocol: src port: ntp(123), Dst port: ntp(123)
Network Time Protocol
- Flags: 0x23
Leap Indicator: no warning(0)
version number: NTP Version 4 (4)
Mode: client (3)
Peer Clock Startum: secondary reference (11)
peer polling Interval: 7 (128 sec)
peer clock precision: 0.000001 sec
Root Delay: 0.0000 sec
clock dispersion: 0.0131 sec
Reference clock Id: 127.127.1.0
Reference Clock update time: Oct 21, 2009 08:10:57.6925 UTC
Originate Time stampe: Oct 21, 2009 08:11:12.7197 UTC
Receive Time stamp: Oct 21, 2009 08:11:12.7107 UTC
Transmit Time Stamp: Oct 21, 2009 08:12:17.7602 UTC
Transmit Time stamp: Oct 21, 2009 08:01:16.9991 UTC


From NTP server to NTP client
-----------------------------
Internet protocol: src: 10.98.2.6 Dst: 10.98.4.10
User Datagram Protocol: src port: ntp (123), Dst port: ntp(123)
Network Time Protocol
- Flags: 0x1c
Leap Indicator: no warning (0)
version number: NTP Version 3 (3)
Mode: server (4)
Peer Clock Startum: secondary reference (2)
peer polling Interval: 7 (128 sec)
peer clock precision: 0.015625 sec
Root Delay: 0.0313 sec
clock dispersion: 10.1188 sec
Reference clock Id: 10.98.2.5
Reference Clock update time: Oct 21, 2009 08:00:51.2820 UTC
Originate Time stamp: Oct 21, 2009 08:12:17.7620 UTC
Receive Time stamp: Oct 21, 2009 08:12:17.7670 UTC
Transmit Time stamp: Oct 21, 2009 08:12:17.7670 UTC




bsng23:~ # ntptrace
localhost: stratum 11, offset 0.000000, synch distance 0.000000

ntp.log
------
21 Oct 11:34:35 ntpd[10166]: ntpd exiting on signal 15
21 Oct 11:34:34 ntpd[32138]: logging to file /var/ntp/ntp.log
21 Oct 11:34:34 ntpd[32138]: ntpd 4.2.0a@1.1213-r Tue Nov 8 17:18:10 UTC 2005 (1)
21 Oct 11:34:34 ntpd[32138]: precision = 1.000 usec
21 Oct 11:34:34 ntpd[32138]: Listening on interface wildcard, 0.0.0.0#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface lo, 127.0.0.1#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface eth2, 192.17.0.25#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface eth4, 192.17.0.65#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond0, 10.98.4.10#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1, 10.98.4.183#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:1, 10.98.4.184#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:2, 10.98.4.185#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:38, 10.98.4.186#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:48, 10.98.4.196#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:52, 10.98.4.198#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:40, 10.98.4.188#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:42, 10.98.4.190#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:44, 10.98.4.192#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:46, 10.98.4.194#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond1:98, 10.98.4.234#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface bond2, 10.98.4.71#123
21 Oct 11:34:34 ntpd[32138]: Listening on interface cip0, 192.18.0.105#123
21 Oct 11:34:34 ntpd[32138]: kernel time sync status 0040
21 Oct 11:34:34 ntpd[32138]: frequency initialized -0.260 PPM from /var/lib/ntp/drift/ntp.drift
21 Oct 11:37:45 ntpd[32138]: synchronized to LOCAL(0), stratum 10
21 Oct 11:37:45 ntpd[32138]: kernel time sync disabled 0041
21 Oct 11:38:49 ntpd[32138]: kernel time sync enabled 0001
21 Oct 11:44:08 ntpd[32138]: synchronized to 192.18.0.24, stratum 11

Please help to resolve this issue. I am struggling from 1 month in trying to synch with the server.

Thanks and Best Regards,
Susane