NTP Server : Configure NTP Client2024/04/26 |
Configure NTP Client.
|
|
NTP Client [systemd-timesyncd.service] is running by default on Ubuntu, so it's easy to set NTP Client.
|
|
[1] | Configure [systemd-timesyncd.service]. |
root@client:~# systemctl status systemd-timesyncd * systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled> Active: active (running) since Fri 2024-04-26 05:52:41 UTC; 55s ago Docs: man:systemd-timesyncd.service(8) Main PID: 591 (systemd-timesyn) Status: "Idle." Tasks: 2 (limit: 4612) Memory: 1.4M (peak: 2.0M) CPU: 27ms CGroup: /system.slice/systemd-timesyncd.service +-- 591 /usr/lib/systemd/systemd-timesyncd
root@client:~#
vi /etc/systemd/timesyncd.conf # add to last line : set NTP server for your timezone NTP=dlp.srv.world
root@client:~#
root@client:~# systemctl restart systemd-timesyncd
timedatectl timesync-status Server: 10.0.0.30 (dlp.srv.world) Poll interval: 4min 16s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 2 Reference: 3DCD7882 Precision: 1us (-24) Root distance: 11.184ms (max: 5s) Offset: -296us Delay: 192us Jitter: 343us Packet count: 4 Frequency: +1.372ppm |
Sponsored Link |