NTP Server : Configure NTP Client2025/04/21 |
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 Mon 2025-04-21 00:07:37 UTC; 6min ago Invocation: 344274a8e88e4074a0c1747edcbae3ef Docs: man:systemd-timesyncd.service(8) Main PID: 421 (systemd-timesyn) Status: "Contacted time server 185.125.190.57:123 (ntp.ubuntu.com)." Tasks: 2 (limit: 3984) Memory: 1.5M (peak: 2.2M) CPU: 29ms CGroup: /system.slice/systemd-timesyncd.service ..... .....
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: 1min 4s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 2 Reference: 85F3EEA4 Precision: 1us (-24) Root distance: 14.778ms (max: 5s) Offset: -6.211ms Delay: 263us Jitter: 0 Packet count: 1 Frequency: -45.110ppm |
Sponsored Link |