08-23-2025 11:06 AM
Hi All.
for some reason i need to configure cisco router as a ntp server( ntp master command). But per 24 hours, it will be drifted about 25 seconds which i need to fix it. i want to execute an eem script so that at clock 00:00:00, add 25 seconds to router clock.
Any idea?
note: at this time, i dont wnat to use external NTP Server.
thanks.
08-23-2025 06:48 PM
A Cisco device, regardless if it is a router, switch, FW, WLC, etc, is not suitable to be an "NTP master" because it does not know how to keep time and does not have a facility how to keep time "accurately". It will drift. Guaranteed.
The best way is to synchronize the router's NTP process with a reputable NTP source, preferably Stratum 1 or 2.
There are two ways around this:
1. Reach out to the internet and find several Stratum 1 or Stratum 2 and synchronize with them.
2. Build a Stratum-1, GPS-based NTP server using a humble Raspberry Pi.
08-24-2025 08:11 AM
i agree with the last post from @Leo Laohoo ,
But I can agree with arguments, NOT to use servers on the internet
if you also don't want to use a Raspberry Pi, and stick with Cisco equipment ,
you may consider a Cisco mobile router and sync with the mobile network?
08-24-2025 08:42 PM
For less than US$250 GPS-based Raspberry Pi solution is the cheapest of options.
Still, the best (platinum-plated) solution is to get a dedicated GPS-based NTP server.
Forcing a Cisco router to do GPS-based NTP with EEM/TCL is not an ideal because the script can/will get "stuck" due to bugs in the firmware.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide