cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
630
Views
1
Helpful
12
Replies

NTP issue

raoufesi
Level 1
Level 1

Capture d’écran 2024-05-22 145122.png

Capture d’écran 2024-05-22 145154.png

Capture d’écran 2024-05-22 145216.png

Capture d’écran 2024-05-22 145237.png

    

Hey community, 

I configured the 'Linux' server above to be the NTP server, all devices in this network can ping the server normally, but they are not synching to it, I provided the output of 'show ntp associations' and 'show ntp status' as well as 'show run' for the ntp section.

knowing that the server is running fedora and chrony. Thank you for your help

12 Replies 12

M02@rt37
VIP
VIP

Hello @raoufesi 

no iptable on your Linux server ?

Do tcpdump on your linux - Do you see udp segment port (123) come from the sources identified ?

Are there any IP restrictions on chrony ? restriction abour IP sources authorized to pool that server for NTP services.

 

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

balaji.bandi
Hall of Fame
Hall of Fame

what NTP server you installed on Linux, Chrony or NTP ?

what Linux distro ?

some linux have default firewall like UFW so check is that on or turned off ?

 check iptables -xnvL see any Firewalls.

check ntp server ports listening - netstat -tunlp

also make sure you allow the clients to connect to server on NTP on Linux :

example :  allow x.x.x.x

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Chrony

fedora 40

firewall is allowing port 323 (chrony's default UDP port) and also allow NTP

there is no ip tables in this distro

here is the output of 'netstat' : 

raoufesi_0-1716477406758.png

also all switches can ping the linux server and I allowed all nodes '0.0.0.0/0' within the chrony.conf file

i do not see your NTP Listening on 323. (using IPv4, its listing on Loopback ip) as per your screenshot.

i use NTP for my testing works as expected :

https://www.balajibandi.com/?p=50

i do not have chrony document in hand i used below guide to setup one works as expected with cisco switches :

https://opensource.com/article/18/12/manage-ntp-chrony

Note: if you move to Windows NTP and working, then you can carry on using Windows NTP, if you like to troubleshooting using Linux - check the document and output.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

debug ntp packet <<- share this please

MHM

raoufesi_0-1716471116902.png

raoufesi_1-1716471286111.pngraoufesi_2-1716471464338.png

 

here you are, also I provided the chrony.conf file and the firewall settings... 

the SW only send the NTP packet without any reply, this meaning there is either reachability which need to check by ping with using source IP not only ping 
ping <ntp server IP> source <ntp source interface or IP>


also the interface in debug is different than what you use as NTP source ?

MHM

raoufesi
Level 1
Level 1

hey again, 

I switched to a windows server 2019 machine, everything was much easier to configure and now everything is working ,the only issue I am having is that the clock is 1hr late in my cisco devices, despite it being correct in the windows server machine, how to solve that ?  

raoufesi_0-1716559538030.png

 

Wait' it will sync but it sometime take long time' check after 1 hr or make SW clock less than ntp server by 5 min. This will faster the sync

MHM

can I just use the 'clock timezone' command to add a 1hr of difference ? will that affect the functioning of NTP ?

date and timezone and clock (-5 or -10 min) all need to match between NTP server and client 

or try 

ntp server x.x.x.x iburst <<- this make SW ask many NTP message and hence faster the Sync

MHM

I would think that clock timezone would solve the issue and it will not affect functioning of NTP.

HTH

Rick