linux:ntp

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:ntp [2019/01/06 09:13] – [NTPサーバーの設定] ともやんlinux:ntp [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー
行 3: 行 3:
 ===== パッケージインストール ===== ===== パッケージインストール =====
 <code> <code>
-$ sudo dnf install ntp+$ sudo dnf install ntp ntpdate
 </code> </code>
- 
 ===== NTPサーバーの設定 ===== ===== NTPサーバーの設定 =====
 設定ファイルのバックアップ。 設定ファイルのバックアップ。
行 24: 行 23:
 # Please consider joining the pool (http://www.pool.ntp.org/join.html). # Please consider joining the pool (http://www.pool.ntp.org/join.html).
 #pool 2.fedora.pool.ntp.org iburst #pool 2.fedora.pool.ntp.org iburst
-pool ntp.jst.mfeed.ad.jp iburst # MFEED +pool ntp.jst.mfeed.ad.jp iburst      # MFEED 
-#server -4 ntp.nict.jp           # NICT +pool ntp.nict.jp iburst              # NICT 
-#server -4 s2csntp.miz.nao.ac.jp # NAO +server s2csntp.miz.nao.ac.jp iburst  # NAO 
-#server -4 ntp.ring.gr.jp        # Ring Server+pool ntp.ring.gr.jp iburst           # Ring Server 
 +pool time.google.com iburst          # Google
 </code> </code>
 ===== ファイヤーウォールの設定 ===== ===== ファイヤーウォールの設定 =====
行 51: 行 51:
 </code> </code>
  
 +===== 動作確認 =====
 +<code>
 +$ sudo ntpdate -d timeserver
 +10 Jan 01:42:07 ntpdate[2809]: ntpdate 4.2.8p12@1.3728-o Wed Aug 15 08:39:42 UTC 2018 (1)
 +Looking for host timeserver and service ntp
 +192.168.1.10 reversed to timeserver.tomoyan.local
 +host found : black-dc.tomoyan.local
 +transmit(192.168.1.10)
 +transmit(192.168.1.10)
 +receive(192.168.1.10)
 +receive: pkt.org and peer.xmt differ
 +receive(192.168.1.10)
 +transmit(192.168.1.10)
 +transmit(192.168.1.10)
 +receive(192.168.1.10)
 +receive: pkt.org and peer.xmt differ
 +receive(192.168.1.10)
 +
 +server 192.168.1.10, port 123
 +stratum 2, precision -24, leap 00, trust 000
 +refid [133.243.238.163], root delay 0.034470, root dispersion 0.097672
 +transmitted 4, in filter 4
 +reference time:    dfe02435.fe2f13ad  Wed, Jan  9 2019 16:41:41.992
 +originate timestamp: dfe02455.9f9c7ecd  Wed, Jan  9 2019 16:42:13.623
 +transmit timestamp:  dfe0a2e5.fc372597  Thu, Jan 10 2019  1:42:13.985
 +filter delay:  0.00000  0.66539  0.00000  2.24023
 +         0.00000  0.00000  0.00000  0.00000
 +filter offset: 0.000000 -32400.8 0.000000 -32401.4
 +         0.000000 0.000000 0.000000 0.000000
 +delay 0.66539, dispersion 24.32080
 +offset -32400.827489
 +
 +10 Jan 01:42:16 ntpdate[2809]: step time server 192.168.1.10 offset -32400.827489 sec
 +</code>
 +<code>
 +$ sudo ntpdate timeserver
 + 9 Jan 16:55:00 ntpdate[8074]: adjust time server 192.168.1.10 offset -0.003202 sec
 +</code>
  • linux/ntp.1546733607.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)