Configure NTP Server(NTPd)2017/04/16 |
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 18: omment out # 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# pool ntp.ubuntu.com# add servers of your timezone to sync times
server ntp.nict.jp iburst
server ntp1.jst.mfeed.ad.jp iburst server ntp2.jst.mfeed.ad.jp iburst # line 50: add the network range you allow to receive requests restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
root@dlp:~#
systemctl restart ntp
# show status root@dlp:~# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.000 +ntp-b2.nict.go. .NICT. 1 u 2 64 1 17.387 -1.790 2.003 *ntp1.jst.mfeed. 133.243.236.17 2 u 2 64 1 16.351 1.497 1.837 +ntp2.jst.mfeed. 133.243.236.17 2 u 2 64 1 17.387 0.322 1.872 |
Sponsored Link |
|