NTP サーバーの設定 (NTPd)2017/06/18 |
|
NTPd をインストールして、時刻同期のための NTP サーバーを構築します。なお、NTP は 123/UDP を使用します。
|
|
| [1] | NTPd のインストールと設定です。 |
|
root@dlp:~#
apt -y install ntp
root@dlp:~#
vi /etc/ntp.conf # 18行目:コメント化 # pool 0.debian.pool.ntp.org iburst# pool 1.debian.pool.ntp.org iburst# pool 2.debian.pool.ntp.org iburst# pool 3.debian.pool.ntp.org iburst# 同期をとるサーバーを指定
server ntp.nict.jp iburst
server ntp1.jst.mfeed.ad.jp iburst server ntp2.jst.mfeed.ad.jp iburst # 50行目:時刻同期を許可する範囲を追記 restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
root@dlp:~#
systemctl restart ntp
# 動作確認 root@dlp:~# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp-b3.nict.go. .NICT. 1 u 1 64 1 19.707 5.647 0.383
ntp1.jst.mfeed. 133.243.236.17 2 u 1 64 1 16.625 5.942 0.657
*ntp2.jst.mfeed. 133.243.236.17 2 u 1 64 1 16.673 5.971 0.487
|
| Sponsored Link |
|
|