cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2111
Views
5
Helpful
41
Replies

NTP Clock Sync for Switch - CISCO Catalyst 2960-48TT

JforJignesh
Level 1
Level 1

Hi,

Switch - CISCO Catalyst 2960-48TT - NTP time sync issue.

NTP server is Windows Server 2022 (Domain Controller).

Pls find below command output step by step for easy understanding.

CSA_SW#show clock detail
.19:28:40.268 IST Fri Dec 8 2023
Time source is NTP

 

CSA_SW#show ntp associations

address ref clock st when poll reach delay offset disp
~172.16.4.5 .LOCL. 1 74 1024 377 1.9 6638.9 24.9
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

 

CSA_SW#ping 172.16.4.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.4.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

 

CSA_SW#show ntp associations detail
172.16.4.5 configured, insane, invalid, stratum 1
ref ID .LOCL., time E91D9746.AF388DE6 (18:53:18.684 IST Fri Dec 8 2023)
our mode client, peer mode server, our poll intvl 1024, peer poll intvl 1024
root delay 0.00 msec, root disp 10019.42, reach 377, sync dist 10045.227
delay 1.86 msec, offset 6638.9188 msec, dispersion 24.87
precision 2**23, version 3
org time E91D9DD5.43307944 (19:21:17.262 IST Fri Dec 8 2023)
rcv time E91D9DCE.9FDD5878 (19:21:10.624 IST Fri Dec 8 2023)
xmt time E91D9DCE.9F624DC0 (19:21:10.622 IST Fri Dec 8 2023)
filtdelay = 1.86 2.33 1.75 1.68 1.68 1.91 1.62 1.80
filtoffset = 6638.92 6625.90 6613.31 6600.43 6587.45 6574.48 6561.85 6548.73
filterror = 0.02 15.64 31.27 46.89 62.52 78.14 93.77 109.39

 

CSA_SW#show ntp status
Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**17
reference time is 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.00 msec, peer dispersion is 0.00 msec

 

Logs as below

009084: .Dec 8 13:17:02.627: xmt E91D95CE.A0971F22 (18:47:02.627 IST Fri Dec 8 2023)
009085: .Dec 8 13:17:02.627: NTP: rcv packet from 172.16.4.5 to 172.16.5.151 on Vlan164:
009086: .Dec 8 13:17:02.627: leap 0, mode 4, version 3, stratum 1, ppoll 1024
009087: .Dec 8 13:17:02.627: rtdel 0000 (0.000), rtdsp AFEE7 (10995.712), refid 4C4F434C (76.79.67.76)
009088: .Dec 8 13:17:02.627: ref E91C45C6.A9DBAC63 (18:53:18.663 IST Thu Dec 7 2023)
009089: .Dec 8 13:17:02.627: org E91D95CE.A0971F22 (18:47:02.627 IST Fri Dec 8 2023)
009090: .Dec 8 13:17:02.627: rec E91D95D5.3DD2FA0D (18:47:09.241 IST Fri Dec 8 2023)
009091: .Dec 8 13:17:02.627: xmt E91D95D5.3DD3A1D3 (18:47:09.241 IST Fri Dec 8 2023)
009092: .Dec 8 13:17:02.627: inp E91D95CE.A10B1322 (18:47:02.629 IST Fri Dec 8 2023)
009093: .Dec 8 13:17:02.627: NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
009094: .Dec 8 13:17:02.627: NTP: no select intersection
009095: .Dec 8 13:17:02.627: NTP: no select intersection
009096: .Dec 8 13:34:06.624: NTP: xmit packet to 172.16.4.5:
009097: .Dec 8 13:34:06.624: leap 3, mode 3, version 3, stratum 0, ppoll 1024
009098: .Dec 8 13:34:06.624: rtdel 0000 (0.000), rtdsp 10001 (1000.015), refid 00000000 (0.0.0.0)
009099: .Dec 8 13:34:06.624: ref 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
009100: .Dec 8 13:34:06.624: org E91D95D5.3DD3A1D3 (18:47:09.241 IST Fri Dec 8 2023)
009101: .Dec 8 13:34:06.624: rec E91D95CE.A10B1322 (18:47:02.629 IST Fri Dec 8 2023)
009102: .Dec 8 13:34:06.624: xmt E91D99CE.9FED5FEB (19:04:06.624 IST Fri Dec 8 2023)
009103: .Dec 8 13:34:06.624: NTP: rcv packet from 172.16.4.5 to 172.16.5.151 on Vlan164:
009104: .Dec 8 13:34:06.624: leap 0, mode 4, version 3, stratum 1, ppoll 1024
009105: .Dec 8 13:34:06.624: rtdel 0000 (0.000), rtdsp A01F0 (10007.568), refid 4C4F434C (76.79.67.76)
009106: .Dec 8 13:34:06.624: ref E91D9746.B0543BC1 (18:53:18.688 IST Fri Dec 8 2023)
009107: .Dec 8 13:34:06.624: org E91D99CE.9FED5FEB (19:04:06.624 IST Fri Dec 8 2023)
009108: .Dec 8 13:34:06.624: rec E91D99D5.4074AACC (19:04:13.251 IST Fri Dec 8 2023)
009109: .Dec 8 13:34:06.624: xmt E91D99D5.4075203D (19:04:13.251 IST Fri Dec 8 2023)
009110: .Dec 8 13:34:06.624: inp E91D99CE.A087061C (19:04:06.627 IST Fri Dec 8 2023)
009111: .Dec 8 13:34:06.624: NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
009112: .Dec 8 13:34:06.624: NTP: no select intersection
009113: .Dec 8 13:34:06.624: NTP: no select intersection
009114: .Dec 8 13:51:10.621: NTP: xmit packet to 172.16.4.5:
009115: .Dec 8 13:51:10.621: leap 3, mode 3, version 3, stratum 0, ppoll 1024
009116: .Dec 8 13:51:10.621: rtdel 0000 (0.000), rtdsp 10001 (1000.015), refid 00000000 (0.0.0.0)
009117: .Dec 8 13:51:10.621: ref 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
009118: .Dec 8 13:51:10.621: org E91D99D5.4075203D (19:04:13.251 IST Fri Dec 8 2023)
009119: .Dec 8 13:51:10.621: rec E91D99CE.A087061C (19:04:06.627 IST Fri Dec 8 2023)
009120: .Dec 8 13:51:10.621: xmt E91D9DCE.9F624DC0 (19:21:10.622 IST Fri Dec 8 2023)
009121: .Dec 8 13:51:10.621: NTP: rcv packet from 172.16.4.5 to 172.16.5.151 on Vlan164:
009122: .Dec 8 13:51:10.621: leap 0, mode 4, version 3, stratum 1, ppoll 1024
009123: .Dec 8 13:51:10.621: rtdel 0000 (0.000), rtdsp A04F9 (10019.424), refid 4C4F434C (76.79.67.76)
009124: .Dec 8 13:51:10.621: ref E91D9746.AF388DE6 (18:53:18.684 IST Fri Dec 8 2023)
009125: .Dec 8 13:51:10.621: org E91D9DCE.9F624DC0 (19:21:10.622 IST Fri Dec 8 2023)
009126: .Dec 8 13:51:10.621: rec E91D9DD5.432F895A (19:21:17.262 IST Fri Dec 8 2023)
009127: .Dec 8 13:51:10.621: xmt E91D9DD5.43307944 (19:21:17.262 IST Fri Dec 8 2023)
009128: .Dec 8 13:51:10.621: inp E91D9DCE.9FDD5878 (19:21:10.624 IST Fri Dec 8 2023)
009129: .Dec 8 13:51:10.621: NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
009130: .Dec 8 13:51:10.621: NTP: no select intersection
009131: .Dec 8 13:51:10.621: NTP: no select intersection

Can anyone tell where I am doing wrong?

Thanx in advance.

Jignesh Patel

41 Replies 41

debug ntp packets

debug ntp event 

Share both 

MHM

CSA_SW#debut ntp packet
^
% Invalid input detected at '^' marker.

How to run command which you asked for?

Friend 

Debug not debut

It enter typo command 

MHM


CSA_SW#debug nt
CSA_SW#debug ntp pac
CSA_SW#debug ntp packets
NTP packets debugging is on
CSA_SW#debug ntp event
NTP events debugging is on
CSA_SW#show logging
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

 

No Inactive Message Discriminator.


Console logging: level debugging, 9242 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 9242 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Persistent logging: disabled

No active filter modules.

Trap logging: level informational, 309 message lines logged
Logging to 172.16.4.22 (udp port 514, audit disabled,
authentication disabled, encryption disabled, link up),
83 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled
Logging to 192.168.160.2 (udp port 514, audit disabled,
authentication disabled, encryption disabled, link up),
68 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled

Log Buffer (4096 bytes):
3: .Dec 8 14:59:26.628: rec E91DA9CE.9FE7F96E (20:12:22.624 IST Fri Dec 8 2023)
009194: .Dec 8 14:59:26.628: xmt E91DADCE.A0CE20CB (20:29:26.628 IST Fri Dec 8 2023)
009195: .Dec 8 14:59:26.628: NTP: rcv packet from 172.16.4.5 to 172.16.5.151 on Vlan164:
009196: .Dec 8 14:59:26.628: leap 0, mode 4, version 3, stratum 1, ppoll 1024
009197: .Dec 8 14:59:26.628: rtdel 0000 (0.000), rtdsp A111C (10066.833), refid 4C4F434C (76.79.67.76)
009198: .Dec 8 14:59:26.628: ref E91D9746.B1CC00F4 (18:53:18.694 IST Fri Dec 8 2023)
009199: .Dec 8 14:59:26.628: org E91DADCE.A0CE20CB (20:29:26.628 IST Fri Dec 8 2023)
009200: .Dec 8 14:59:26.628: rec E91DADD5.51CBB8D0 (20:29:33.319 IST Fri Dec 8 2023)
009201: .Dec 8 14:59:26.628: xmt E91DADD5.51CC1871 (20:29:33.319 IST Fri Dec 8 2023)
009202: .Dec 8 14:59:26.628: inp E91DADCE.A18FCA69 (20:29:26.631 IST Fri Dec 8 2023)
009203: .Dec 8 14:59:26.628: NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
009204: .Dec 8 14:59:26.628: NTP: no select intersection
009205: .Dec 8 14:59:26.628: NTP: no select intersection
009206: .Dec 8 15:16:30.625: NTP: xmit packet to 172.16.4.5:
009207: .Dec 8 15:16:30.625: leap 3, mode 3, version 3, stratum 0, ppoll 1024
009208: .Dec 8 15:16:30.625: rtdel 0000 (0.000), rtdsp 10001 (1000.015), refid 00000000 (0.0.0.0)
009209: .Dec 8 15:16:30.625: ref 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
009210: .Dec 8 15:16:30.625: org E91DADD5.51CC1871 (20:29:33.319 IST Fri Dec 8 2023)
009211: .Dec 8 15:16:30.625: rec E91DADCE.A18FCA69 (20:29:26.631 IST Fri Dec 8 2023)
009212: .Dec 8 15:16:30.625: xmt E91DB1CE.A021AA40 (20:46:30.625 IST Fri Dec 8 2023)
009213: .Dec 8 15:16:30.625: NTP: rcv packet from 172.16.4.5 to 172.16.5.151 on Vlan164:
009214: .Dec 8 15:16:30.625: leap 0, mode 4, version 3, stratum 1, ppoll 1024
009215: .Dec 8 15:16:30.625: rtdel 0000 (0.000), rtdsp A1424 (10078.674), refid 4C4F434C (76.79.67.76)
009216: .Dec 8 15:16:30.625: ref E91D9746.B471C6EC (18:53:18.704 IST Fri Dec 8 2023)
009217: .Dec 8 15:16:30.625: org E91DB1CE.A021AA40 (20:46:30.625 IST Fri Dec 8 2023)
009218: .Dec 8 15:16:30.625: rec E91DB1D5.54714918 (20:46:37.329 IST Fri Dec 8 2023)
009219: .Dec 8 15:16:30.625: xmt E91DB1D5.5471E372 (20:46:37.329 IST Fri Dec 8 2023)
009220: .Dec 8 15:16:30.625: inp E91DB1CE.A0D41973 (20:46:30.628 IST Fri Dec 8 2023)
009221: .Dec 8 15:16:30.625: NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
009222: .Dec 8 15:16:30.625: NTP: no select intersection
009223: .Dec 8 15:16:30.625: NTP: no select intersection
009224: .Dec 8 15:33:34.622: NTP: xmit packet to 172.16.4.5:
009225: .Dec 8 15:33:34.622: leap 3, mode 3, version 3, stratum 0, ppoll 1024
009226: .Dec 8 15:33:34.622: rtdel 0000 (0.000), rtdsp 10001 (1000.015), refid 00000000 (0.0.0.0)
009227: .Dec 8 15:33:34.622: ref 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
009228: .Dec 8 15:33:34.622: org E91DB1D5.5471E372 (20:46:37.329 IST Fri Dec 8 2023)
009229: .Dec 8 15:33:34.622: rec E91DB1CE.A0D41973 (20:46:30.628 IST Fri Dec 8 2023)
009230: .Dec 8 15:33:34.622: xmt E91DB5CE.9F78127A (21:03:34.622 IST Fri Dec 8 2023)
009231: .Dec 8 15:33:34.622: NTP: rcv packet from 172.16.4.5 to 172.16.5.151 on Vlan164:
009232: .Dec 8 15:33:34.622: leap 0, mode 4, version 3, stratum 1, ppoll 1024
009233: .Dec 8 15:33:34.622: rtdel 0000 (0.000), rtdsp A172D (10090.530), refid 4C4F434C (76.79.67.76)
009234: .Dec 8 15:33:34.622: ref E91D9746.B300317E (18:53:18.699 IST Fri Dec 8 2023)
009235: .Dec 8 15:33:34.622: org E91DB5CE.9F78127A (21:03:34.622 IST Fri Dec 8 2023)
009236: .Dec 8 15:33:34.622: rec E91DB5D5.57186A5A (21:03:41.340 IST Fri Dec 8 2023)
009237: .Dec 8 15:33:34.622: xmt E91DB5D5.5718E325 (21:03:41.340 IST Fri Dec 8 2023)
009238: .Dec 8 15:33:34.622: inp E91DB5CE.A00993A0 (21:03:34.625 IST Fri Dec 8 2023)
009239: .Dec 8 15:33:34.622: NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
009240: .Dec 8 15:33:34.622: NTP: no select intersection
009241: .Dec 8 15:33:34.622: NTP: no select intersection
CSA_SW#

172.16.4.5 configured, insane, invalid, stratum 1

insane:-
this can be if the 172.16.4.5 dont config as master of NTP 

or 

it is bug and workaround is 

no ntp
no ntp
(yes twice)
then re-entered the ntp server x.x.x.x 

MHM 

Run no ntp twise, it doesn't help, also tried SW time zone UTC+4.30 (Minus 1 hr than actual NTP server time zone which is UTC+5.30), it also doesn't work.

Why in out put of show ntp status, reference clock date is Jan 1 1900? How to change it?

 

No ntp 

No ntp

Then re-enter ntp server command 

For 1900' I check alot it not effect sync between client/server 

MHM

I followed as you mentioned but still it didn't work

Command output as below

CSA_SW(config)#
CSA_SW(config)#no ntp
CSA_SW(config)#no ntp
CSA_SW(config)#
CSA_SW(config)#ntp server 172.16.4.5
CSA_SW(config)#
CSA_SW(config)#exit


CSA_SW#show clock detail
.19:01:41.856 IST Sat Dec 9 2023
Time source is NTP

 

CSA_SW#show ntp associations
address ref clock st when poll reach delay offset disp
~172.16.4.5 .LOCL. 1 194 1024 377 1.0 3046.6 0.5
* master (synced), # master (unsynced), + selected, - candidate, ~ configured


CSA_SW#show ntp associations detail
172.16.4.5 configured, insane, invalid, stratum 1
ref ID .LOCL., time E91EE8C6.BA844F85 (18:53:18.728 IST Sat Dec 9 2023)
our mode client, peer mode server, our poll intvl 1024, peer poll intvl 1024
root delay 0.00 msec, root disp 10003.66, reach 377, sync dist 10004.608
delay 0.98 msec, offset 3046.6153 msec, dispersion 0.46
precision 2**23, version 3
org time E91EEA04.5A846DB8 (18:58:36.353 IST Sat Dec 9 2023)
rcv time E91EEA01.4EB59B0B (18:58:33.307 IST Sat Dec 9 2023)
xmt time E91EEA01.4E74E345 (18:58:33.306 IST Sat Dec 9 2023)
filtdelay = 0.98 1.50 2.11 2.29 2.70 1.88 2.09 1.85
filtoffset = 3046.62 3046.31 3046.04 3045.98 3045.70 3046.09 3046.03 3046.14
filterror = 0.02 0.03 0.05 0.06 0.08 0.09 0.11 0.12


CSA_SW#show ntp status
Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**18
reference time is 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.00 msec, peer dispersion is 0.00 msec

I given log detail, isn't it the one you ask for?

Friend it step of troubleshooting'

I need to check step by step

MHM

M02@rt37
VIP
VIP

Hello @JforJignesh 

On your NTP configuration, please add a NTP source <IP or VLAN> command.

In order to source NTP packet with the good IP routed towards the NTP server.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Hi,

IP is already there..

 

ntp logging
ntp server 172.16.4.5
end

@JforJignesh 

I'm not talking about this command.

This one under config terminal: ntp source ×××

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

It doesn't work, pls find command output as below.

SW IP and NTP server are in VLAN 164

ntp logging
ntp source Vlan164
ntp server 172.16.4.5
end

CSA_SW#show ntp associations

address ref clock st when poll reach delay offset disp
~172.16.4.5 .LOCL. 1 876 1024 377 1.8 2921.9 2.1
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

 

CSA_SW#show ntp associations detail
172.16.4.5 configured, insane, invalid, stratum 1
ref ID .LOCL., time E91D9746.B2CE4B52 (18:53:18.698 IST Fri Dec 8 2023)
our mode client, peer mode server, our poll intvl 1024, peer poll intvl 1024
root delay 0.00 msec, root disp 10889.60, reach 377, sync dist 10892.548
delay 1.79 msec, offset 2921.9864 msec, dispersion 2.06
precision 2**23, version 3
org time E91EC384.C6C631A8 (16:14:20.776 IST Sat Dec 9 2023)
rcv time E91EC381.DAF9B24C (16:14:17.855 IST Sat Dec 9 2023)
xmt time E91EC381.DA83B491 (16:14:17.853 IST Sat Dec 9 2023)
filtdelay = 1.79 1.10 1.92 30.78 1.98 2.15 2.79 2.21
filtoffset = 2921.99 2922.38 2921.92 2907.45 2921.85 2921.81 2921.47 2921.71
filterror = 0.02 0.03 0.05 0.06 0.08 0.09 0.11 0.12

 

CSA_SW#show ntp status
Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**18
reference time is 00000000.00000000 (05:30:00.000 IST Mon Jan 1 1900)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.00 msec, peer dispersion is 0.00 msec

Why in out put of show ntp status, reference clock date is Jan 1 1900? How to change it?