Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5172

Raspberry Pi OS • Re: dhcpcd not learning NTP servers from DHCP

$
0
0
bringing my good old shelved Pi2B to new life I just installed newest Raspberry Pi OS (Lite, all updates installed) and noticed that the system didn't use the NTP servers my DHCP server provides to it, but the default Debian pool fallback servers. The fix is to uncomment the line:

#option ntp_servers

in /etc/dhcpcd.conf to make dhcpcd to actually request the NTP servers option. The hook to make systemd-timesyncd aware of the DHCP-provided NTP server list is in place already and works just fine.
The newest Raspberry Pi OS doesn't have dhcpcd.conf. You're using the legacy Bullseye version of the OS. The Installer recommends the older version for the lower powered Pi, but you can install the latest Bookworm version if you skip the Board selection on the Installer.

The latest version uses NetworkManager instead of dhcpcd, which does appear to respect the ntpserver DHCP option.

Statistics: Posted by rpdom — Tue Apr 23, 2024 8:03 am



Viewing all articles
Browse latest Browse all 5172

Trending Articles