NTP Server : Configure Chrony2019/04/22 |
Install Chrony and Configure NTP server for time adjustment. NTP uses 123/UDP.
|
|
[1] | Install and Configure Chrony. |
root@dlp:~#
apt -y install chrony
root@dlp:~#
vi /etc/chrony/chrony.conf # line 17: comment out default settings and add NTP Servers for your timezone #pool ntp.ubuntu.com iburst maxsources 4 #pool 0.ubuntu.pool.ntp.org iburst maxsources 1 #pool 1.ubuntu.pool.ntp.org iburst maxsources 1 #pool 2.ubuntu.pool.ntp.org iburst maxsources 2 server ntp.nict.jp iburst server ntp1.jst.mfeed.ad.jp iburst server ntp2.jst.mfeed.ad.jp iburst # add to the end : add network range you allow to receive time syncing requests from clients allow 10.0.0.0/24
root@dlp:~#
systemctl restart chrony
# show status root@dlp:~# chronyc sources 210 Number of sources = 3 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* ntp-b2.nict.go.jp 1 6 17 2 +574us[ +525us] +/- 12ms ^- ntp1.jst.mfeed.ad.jp 2 6 17 2 -1384us[-1384us] +/- 93ms ^- ntp2.jst.mfeed.ad.jp 2 6 17 2 +685us[ +637us] +/- 82ms |
Sponsored Link |
|