24.04.2020 18:29, Michael Hirmke пишет:
Hi *,
I tried to understand the relation between chrony, timedatectl, dhcp and NetworkManager on my Tumbleweed notebook.
timedatectl is used to enable/disable systemd-timesyncd which implements SNTP to periodically poll time server(s). systemd-timesyncd obtains list of servers from static configuration and from systemd-networkd. Whether systemd-networkd requests list of NTP servers from DHCP v4/v6 server is per-interface configurable. See man timedatectl man timed-timesyncd man systemd.network If systemd-networkd is not used to manage network, you cannot use DHCP to fetch NTP servers for systemd-timesyncd. chrony comes with dhclient hook script that updates running chronyd with NTP server(s) received from DHCP server and stores NTP servers in well known location that is used to prime time servers list on (re-)starting chronyd.service. If dhclient is not used, it is up to you to provide suitable hook for your DHCP client implementation. This probably includes wicked, at least I do not see any extensions for dealing with chrony. dhclient is NetworkManager default (at least on Leap 15.1) so NeworkManager should use the same dhclient hook.
I regularily use a LAN connection, WiFi connections and LTE connections. In every case the network information is fetched via dhcp. Do I need chrony in this environment? Or is the systemd timedatectl service sufficient?
Timedatectl is not service. Service is systemd-timesyncd.
If I need chrony, how does chrony get the ntp server address from dhcp? I don't want to change it manually in chrony.conf.
I tried different constellations, but the results didn't seem to be consistent in a way I could understand.
TIA.
Bye. Michael.
-- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org