Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
admin_grundlagen:chrony [2023/05/04 11:03] ingo_wichmann [Precision Time Protocol (PTP) im KVM Gast] |
admin_grundlagen:chrony [2024/01/02 06:56] (aktuell) ingo_wichmann [chronyd] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== NTP ====== | ====== NTP ====== | ||
+ | ===== chronyd ===== | ||
+ | |||
+ | <file txt /etc/chrony/conf.d/50-local.conf> | ||
+ | binddevice lo | ||
+ | binddevice eth0 | ||
+ | allow 192.168.1.0/24 | ||
+ | allow fd42:c0de:d0c:f0::/64 | ||
+ | </file> | ||
+ | |||
+ | Konfigurationsdatei testen: | ||
+ | chronyd -p | ||
+ | | ||
+ | Gab es Fehler beim Start? | ||
+ | journalctl -eu chrony.service | ||
+ | lsof -ac chronyd -Pi | ||
+ | | ||
+ | ===== Zeitserver von pool.ntp.org nutzen ===== | ||
+ | [[https://www.ntppool.org/de/use.html|pool.ntp.org]] nutzen | ||
+ | <file txt /etc/chrony/sources.d/local.sources> | ||
+ | server 0.de.pool.ntp.org iburst | ||
+ | server 1.de.pool.ntp.org | ||
+ | server 2.de.pool.ntp.org | ||
+ | server 3.de.pool.ntp.org | ||
+ | </file> | ||
+ | |||
+ | ===== Zeitserver der PTB nutzen ===== | ||
+ | |||
+ | NTP-Service der [[https://www.ptb.de/cms/ptb/fachabteilungen/abtq/gruppe-q4/ref-q42/zeitsynchronisation-von-rechnern-mit-hilfe-des-network-time-protocol-ntp.html|Physikalisch-Technische Bundesanstalt]] nutzen | ||
+ | |||
+ | <file txt /etc/chrony/sources.d/local.sources> | ||
+ | server ptbtime1.ptb.de iburst nts | ||
+ | server ptbtime2.ptb.de nts | ||
+ | server ptbtime3.ptb.de nts | ||
+ | server ptbtime4.ptb.de nts | ||
+ | </file> | ||
+ | |||
+ | chronyc reload sources | ||
+ | |||
+ | Warten, bis die Zeitserver verbunden sind: | ||
+ | watch chronyc sources -v | ||
+ | |||
+ | ===== Chrony über chronyc steuern ===== | ||
Chrony Client starten und automatisch anmelden: | Chrony Client starten und automatisch anmelden: |