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

Next revision
Previous revision
linux:ntp [2022/11/16 18:53] – created - external edit 127.0.0.1linux:ntp [2025/04/02 19:41] (current) – [client] gsys
Line 2: Line 2:
  
 ===== Befehle ===== ===== Befehle =====
 +
 +<code bash>
 +rcntp ntptimeset     #Zeit mit NTP-Server synchroniseren (SLES legacy)
 +ntpq -p              #show peers
 +timedatectl
 +sudo timedatectl set-ntp true
 +sudo timedatectl set-local-rtc 0
 +systemctl status systemd-timesyncd
 +sudo systemctl restart systemd-timesyncd
 +</code>
 +
 +===== Zeitzone setzen =====
 +
 +<code bash>
 +timedatectl  status
 +timedatectl list-timezones |  egrep  -o "Europe/B.*"
 +sudo timedatectl set-timezone "Europe/Berlin"
 +</code>
 +
 +===== chrony =====
 +
 +''chrony.conf''
 +<code>
 +server 192.168.1.1
 +allow 10.1.0.0/16
 +allow 192.168.1.0/24
 +</code>
 +
 +==== client ====
 <code> <code>
-rcntp ntptimeset     #Zeit mit NTP-Server synchroniseren (SLES)+chronyc activity 
 +chronyc 'burst 4/4'   might interrupt services 
 +chronyc -N sources
 </code> </code>
 +
linux/ntp.1668621231.txt.gz · Last modified: 2024/02/17 19:03 (external edit)