NTP Server : Configure NTP Server (NTPd)2022/04/25 |
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-b2.nict.go. .NICT. 1 u - 64 1 20.462 +4.017 0.854 ntp-k1.nict.jp .nict. 1 u - 64 1 16.836 +3.167 0.336 ntp-a2.nict.go. .NICT. 1 u - 64 1 17.048 +2.916 0.961 ntp-a3.nict.go. .NICT. 1 u - 64 1 17.433 +2.507 0.422 ntp-b3.nict.go. .NICT. 1 u 1 64 1 19.716 +4.415 0.290 |
Sponsored Link |