NTP サーバーの設定2015/11/21 |
|
NTPd をインストールして、時刻同期のための NTP サーバーを構築します。なお、NTP は 123/UDP を使用します。
|
|
| [1] | NTPd をインストールします。 |
|
dlp:~ # zypper -n install ntp
|
| [2] | NTP の設定です。 |
|
dlp:~ #
vi /etc/ntp.conf # 38行目:同期をとるサーバーを追記
server ntp1.jst.mfeed.ad.jp iburst
server ntp2.jst.mfeed.ad.jp iburst server ntp3.jst.mfeed.ad.jp iburst # 67行目: 時刻同期を許可する範囲を追記
restrict 10.0.0.0 mask 255.255.255.0 notrust
systemctl start ntpd dlp:~ # systemctl enable ntpd dlp:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*ntp1.jst.mfeed. 133.243.236.17 2 u 11 64 1 17.447 0.317 0.164
ntp2.jst.mfeed. 133.243.236.17 2 u 8 64 1 17.320 0.311 0.388
ntp3.jst.mfeed. 133.243.236.17 2 u 18 64 0 0.000 0.000 0.000
|
| Sponsored Link |
|
|