Posted: Sat Jan 28, 2023 18:27 Post subject: Does a DD-WRT router work as an NTP server?
Should I set up my network so my main router connects to my preferred NTP server? (pool.ntp.org) and then all subrouters and access points ping *that* (192.168.1.1) for NTP information?
Would it in fact be better to set it up that way for ping stability reason? _________________ Google is Spyware
DD-WRT uses (a modified version of) ntpclient; it does not use the busybox-included ntpd, whatsoever, so you cannot use DD-WRT as an NTP server. _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
I'm not interested in installing an NTP server, but something very funny has just occurred to me.
I get regular "cyclic NTP update failed" responses from the NTP server I use.
It's occurred to me, all my devices, or maybe just by dd-wrt devices might be pinging simultaneously, causing the server to possibly not respond.
I guess it would depend on how the NTP servers are queried (either at a certain time, or after a certain amount of time).
It seems to check quite a bit in the log:
Code:
Jan 28 20:48:31 ProtectLi daemon.debug ntpclient[8705]: Connecting to pool.ntp.org [108.61.56.35] ...
Jan 28 20:48:31 ProtectLi daemon.info ntpclient[8705]: Time set from pool.ntp.org [108.61.56.35].
Jan 28 20:48:31 ProtectLi daemon.info process_monitor[10260]: Cyclic NTP Update success (servers pool.ntp.org)
Jan 28 20:48:31 ProtectLi daemon.info process_monitor[10260]: Local timer delta is 0
part 2:
I just checked, and the dd-wrt devices don't check at the same time but seem to check hourly. _________________ Google is Spyware
I get regular "cyclic NTP update failed" responses from the NTP server I use.
If errors still occur with other NTP servers (suggested by @egc) then your ISP may have inconsistent latency. Installing ntpd from entware (also suggested by @egc) is a on-liner if you already use entware. Entware's ntpd solved this in the past with my previous ISP.
Even with my current better ISP, I still run an NTP server on a linux machine and all my 20-25 devices can bombard it with ntp requests over the LAN. More accurate and "polite" than have every device individually harassing a public NTP server.
All you need on your router or PC or anything really is to sync once per day, not once per hour.... nobody is running the Atomic Clock or anything that requires any closer precision, are they? _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio