cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2465
Views
2
Helpful
5
Replies

NTP Master and NTP Server

Hello.

I have a Cisco 4351 router that i configured as an NTP Master, all other routers and switches synchronize to this router. I have configured a Windows server as an NTP Server that synchronizes with Internet time servers, i need the 4351 router to synchronize its clock to the windows server, and then in turn distribute the time to the rest of the routers. 

The problem is that even when i configure the windows server as an NTP server on the router, its still preferring to synchronize to its local NTP server on IP address 127.127.1.1,  how can make the router to not use its local reference?  below is the NTP configuration and output for some show commands:

NBS-BT-DC-C4351-EDGE#sh run | sec ntp
ntp authentication-key 2 md5 107A514A3705180E30002E1D73086831 7
ntp authenticate
ntp trusted-key 2
ntp source Loopback0
ntp access-group serve ACL_NTP
ntp master 15
ntp server 10.40.129.153 prefer




NBS-BT-DC-C4351-EDGE#sh ntp associations
Load for five secs: 2%/1%; one minute: 3%; five minutes: 3%
Time source is NTP, 11:04:06.671 CAT Sat May 20 2023

address             ref clock      st      when       poll reach delay offset disp
*~127.127.1.1    .LOCL.      14        5           16 377 0.000 0.000 1.204
~10.40.129.153    .INIT.       16         -          1024 0 0.000 0.000 15937.
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured

 

 

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

Hello @vitumbiko nkhwazi

In the NTP output you provided, the IP address 10.40.129.153 has a reference clock status of ".INIT." and a stratum value of 16. A stratum value of 16 indicates that the device is unsynchronized and is being used to initialize the NTP association. Then, your routeur prefer to synchronied with its local reference, even if you configure stratum 15 on it! The stratum value represents the level of hierarchy in the NTP network, with lower numbers indicating higher accuracy and reliability. Stratum 1 devices are considered the most accurate and reliable time sources, while stratum 15 is the highest value, indicating that the router is not synchronized to any external time source.

You have to troubleshoot and find the reason why your router is not synchronised with WIndows NTP server:

-- Verify that the IP address of the Windows server is correct and reachable from the Cisco 4351 route

--Check for any ACLs or firewall rules that may be blocking NTP traffic between the router and the Windows server.

-- Check for any NTP authentication settings on both the router and the Windows server, ensuring they are correctly configured and matching.

 

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

View solution in original post

5 Replies 5

Hello
One reason why a rtr wont sync with a lower stratum would be  due to the clock timing being to much out of sync in the first place, Also make sure the rtr is set to be able to query the windows ntp server and its not set by mistake just to serve it.

Suggest you create two acls so you can peer with the windows server and serve your lan clients ntp queries, decrease your stratum, as 15 is quite a high value..

access−list 10 permit  host 10.40.129.153
access−list 10 deny any

access−list 11 permit <lan subnets>
access−list 11 deny any

ntp access−group peer 10
ntp access−group serve−only 11
ntp master 8


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

ntp master 15

remove this from the config 
check other cisco device is sync with router or not 

ntp server 10.40.129.153 prefer key 2 

this also needed

M02@rt37
VIP
VIP

Hello @vitumbiko nkhwazi

In the NTP output you provided, the IP address 10.40.129.153 has a reference clock status of ".INIT." and a stratum value of 16. A stratum value of 16 indicates that the device is unsynchronized and is being used to initialize the NTP association. Then, your routeur prefer to synchronied with its local reference, even if you configure stratum 15 on it! The stratum value represents the level of hierarchy in the NTP network, with lower numbers indicating higher accuracy and reliability. Stratum 1 devices are considered the most accurate and reliable time sources, while stratum 15 is the highest value, indicating that the router is not synchronized to any external time source.

You have to troubleshoot and find the reason why your router is not synchronised with WIndows NTP server:

-- Verify that the IP address of the Windows server is correct and reachable from the Cisco 4351 route

--Check for any ACLs or firewall rules that may be blocking NTP traffic between the router and the Windows server.

-- Check for any NTP authentication settings on both the router and the Windows server, ensuring they are correctly configured and matching.

 

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

Rich R
VIP
VIP

Yep remove the

ntp master

command.
To get it to sync quicker it can sometimes help to remove the

ntp server

commands, set the time as close to correct as possible manually (clock set), then replace the

ntp server 

commands.

Joseph W. Doherty
Hall of Fame
Hall of Fame

BTW, don't know if this still applies to Windows NTP servers, but I recall (?) it used to be their "NTP" service wasn't fully compatible with other NTP devices.  I recall you needed to install "extra" NTP software to get full NTP compatibility.

Review Cisco Networking for a $25 gift card