NTP Server : Configure NTP Client2026/04/24 |
|
Configure NTP Client. |
|
|
Since Chrony is running by default, you don't need to change the settings unless you have a specific requirement. However, if, for example, your computer is in a closed network environment and cannot connect to the internet, you can change the server used for time synchronization as follows. |
|
| [1] | Configure [systemd-timesyncd.service]. |
|
root@dlp:~#
vi /etc/chrony/sources.d/ubuntu-ntp-pools.sources # line 4 : comment out the default settings and add the NTP server you want to use #pool 1.ntp.ubuntu.com iburst maxsources 1 nts prefer #pool 2.ntp.ubuntu.com iburst maxsources 1 nts prefer #pool 3.ntp.ubuntu.com iburst maxsources 1 nts prefer #pool 4.ntp.ubuntu.com iburst maxsources 1 nts prefer pool ntp.srv.world iburst
root@dlp:~#
systemctl restart chrony
# check working root@ubuntu:~# chronyc sources MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* ntp.srv.world 2 6 17 8 +35us[ +39us] +/- 7706us |
| Sponsored Link |
|
|