NTP Server2013/05/06 |
Configure NTP server for time adjustment. |
root@dlp:~#
aptitude -y install ntp
root@dlp:~#
vi /etc/ntp.conf # line 21: make it comment # server 0.debian.pool.ntp.org iburst# server 1.debian.pool.ntp.org iburst# server 2.debian.pool.ntp.org iburst# server 3.debian.pool.ntp.org iburst# change servers for synchronization
server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp # line 48: add the network range you allow to receive requests restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
/etc/init.d/ntp restart [ ok ] Stopping NTP server: ntpd. [ ok ] Starting NTP server: ntpd.root@dlp:~# ntpq -p # check working remote refid st t when poll reach delay offset jitter ============================================================================== ntp1.jst.mfeed. 172.29.3.50 2 u 27 64 1 18.466 -0.379 0.000 ntp2.jst.mfeed. 172.29.2.50 2 u 26 64 1 18.773 0.316 0.000 ntp3.jst.mfeed. 172.29.3.50 2 u 25 64 1 20.092 -2.592 0.000 |
|