NTP Server : Configure NTP Client2023/04/21 |
|
Configure NTP Client.
|
|
|
NTP Client [systemd-timesyncd.service] is running by default on Ubuntu, so it's easy to set NTP Client.
By the way, it's also possible to use
Chrony as a NTP Client.
If you use them, simply set only NTP server to sync time, do not set permission to receive time sync requests from other Hosts. |
|
| [1] | Configure [systemd-timesyncd.service]. |
|
root@client:~# systemctl status systemd-timesyncd
* systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; pr>
Active: active (running) since Fri 2023-04-21 07:48:01 UTC; 3min 29s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 457 (systemd-timesyn)
Status: "Contacted time server 10.0.0.10:123 (10.0.0.10)."
Tasks: 2 (limit: 4518)
Memory: 1.4M
CPU: 27ms
CGroup: /system.slice/systemd-timesyncd.service
root@client:~#
vi /etc/systemd/timesyncd.conf # add to the end : 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: 85F3EEA3
Precision: 1us (-25)
Root distance: 12.168ms (max: 5s)
Offset: -117us
Delay: 233us
Jitter: 0
Packet count: 1
Frequency: +2.339ppm
|
| Sponsored Link |
|
|