Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
admin_grundlagen:chrony [2023/05/04 10:18] ingo_wichmann |
admin_grundlagen:chrony [2024/01/02 06:07] ingo_wichmann |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== NTP ====== | ====== NTP ====== | ||
+ | ===== chronyd ===== | ||
+ | |||
+ | <file txt /etc/chrony/conf.d/50-local.conf> | ||
+ | binddevice lo | ||
+ | binddevice eth0 | ||
+ | </file> | ||
+ | |||
+ | Konfigurationsdatei testen: | ||
+ | chronyd -p | ||
+ | | ||
+ | Gab es Fehler beim Start? | ||
+ | journalctl -eu chrony.service | ||
+ | lsof -ac chronyd -Pi | ||
+ | | ||
+ | ===== Zeitserver der PTB hinzufügen ===== | ||
+ | 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.conf> | ||
+ | server ptbtime1.ptb.de nts | ||
+ | server ptbtime2.ptb.de nts | ||
+ | server ptbtime3.ptb.de nts | ||
+ | server ptbtime4.ptb.de nts | ||
+ | </file> | ||
+ | |||
+ | ===== Chrony über chronyc steuern ===== | ||
Chrony Client starten und automatisch anmelden: | Chrony Client starten und automatisch anmelden: | ||
Zeile 63: | Zeile 88: | ||
<file txt /etc/chrony/chrony.conf> | <file txt /etc/chrony/chrony.conf> | ||
#pool 2.debian.pool.ntp.org iburst | #pool 2.debian.pool.ntp.org iburst | ||
- | refclock PHC /dev/ptp0 poll 2 | + | refclock PHC /dev/ptp_kvm poll 2 |
</file> | </file> | ||