fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:ntp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ntp [2025/03/13 13:03] gsyslinux:ntp [2026/04/05 20:27] (current) gsys
Line 19: Line 19:
 timedatectl list-timezones |  egrep  -o "Europe/B.*" timedatectl list-timezones |  egrep  -o "Europe/B.*"
 sudo timedatectl set-timezone "Europe/Berlin" sudo timedatectl set-timezone "Europe/Berlin"
 +</code>
 +
 +===== timesyncd =====
 +<code>
 +sudo nano /etc/systemd/timesyncd.conf
 +</code>
 +
 +<code>
 +[Time]
 +NTP=ptbtime1.ptb.de ptbtime2.ptb.de ptbtime3.ptb.de
 +</code>
 +
 +<code>
 +sudo systemctl restart systemd-timesyncd
 +sudo systemctl status systemd-timesyncd
 </code> </code>
  
Line 28: Line 43:
 allow 10.1.0.0/16 allow 10.1.0.0/16
 allow 192.168.1.0/24 allow 192.168.1.0/24
 +</code>
 +
 +restart chrony service
 +<code>
 +systemctl restart chronyd
 +</code>
 +
 +check if new ntp server is used
 +<code>
 +journalctl --since -1h -u chronyd
 +</code>
 +==== client ====
 +<code>
 +chronyc activity
 +chronyc 'burst 4/4'   # might interrupt services
 +chronyc -N sources
 </code> </code>
  
linux/ntp.1741867422.txt.gz · Last modified: by gsys