Setup ntp client with embedded device
10,508
It looks like you have the Busybox version of ntpd
. Here's a useful HOWTO:
http://wiki.openwrt.org/doc/howto/ntp.client
For example:
ntpd -q -p ptbtime1.ptb.de
Related videos on Youtube
Author by
Bob
Updated on September 18, 2022Comments
-
Bob over 1 year
I need to run an NTP client on a very limited embedded device.
ntpd
is available but I do not see anything likerc.conf
, orntp.conf
, orxntp.conf
? Can someone advise on how to setup NTP?I ran
ntpd
, but the date and time haven't updated.-
yegorich over 10 yearsTry ntpdate
-
-
Bob over 10 yearsWhat do you mean by it? Isn't ntpd supposed to synchronize with the servers?
-
SarahG over 10 yearsntpd can sync to a "broadcast" server. A ntp server that broadcasts on your network. This is less secure as anyone can setup a broadcast server. It's common for some routers to broadcast NTP as do some OSes. The command I gave syncs one time then exits. But that assumes a standard version of ntpd
-
dfc over 10 yearsWhat common routers and/or OSs provide broadcast ntp service? Maybe you meant "it is not common to find ntp broadcast service"?
-
SarahG over 10 yearscisco routers, and windows active directory servers to name couple right off the top of my head.