NTP Server : Configure NTP Server (NTPd)2021/04/28 |
Install NTPd and Configure NTP server for time adjustment. NTP uses 123/UDP.
|
|
[1] | Install and Configure NTPd. |
root@dlp:~#
apt -y install ntp
root@dlp:~#
vi /etc/ntp.conf # line 21 : comment out default settings and add NTP Servers for your timezone #pool 0.ubuntu.pool.ntp.org iburst #pool 1.ubuntu.pool.ntp.org iburst #pool 2.ubuntu.pool.ntp.org iburst #pool 3.ubuntu.pool.ntp.org iburst # Use Ubuntu's ntp server as a fallback. #pool ntp.ubuntu.com pool ntp.nict.jp iburst # line 51 : add network range you allow to receive time syncing requests from clients restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
root@dlp:~#
systemctl restart ntp
# verify status root@dlp:~# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== ntp.nict.jp .POOL. 16 p - 64 0 0.000 0.000 0.000 *ntp-a2.nict.go. .NICT. 1 u 1 64 1 16.451 9.477 2.297 ntp-k1.nict.jp .nict. 1 u 2 64 1 45.758 -4.292 15.466 ntp-a3.nict.go. .NICT. 1 u 1 64 1 15.337 9.015 7.940 ntp-b3.nict.go. .NICT. 1 u 2 64 1 18.603 10.439 0.523 ntp-b2.nict.go. .NICT. 1 u 2 64 1 18.996 10.804 1.200 |
Sponsored Link |
|