差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| linux:ntp [2013/10/15 02:33] – 作成 ともやん | linux:ntp [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| ===== パッケージインストール ===== | ===== パッケージインストール ===== | ||
| < | < | ||
| - | $ sudo yum install ntp | + | $ sudo dnf install ntp ntpdate |
| </ | </ | ||
| - | |||
| ===== NTPサーバーの設定 ===== | ===== NTPサーバーの設定 ===== | ||
| 設定ファイルのバックアップ。 | 設定ファイルのバックアップ。 | ||
| 行 23: | 行 22: | ||
| # Use public servers from the pool.ntp.org project. | # Use public servers from the pool.ntp.org project. | ||
| # Please consider joining the pool (http:// | # Please consider joining the pool (http:// | ||
| - | #server 0.fedora.pool.ntp.org iburst | + | #pool 2.fedora.pool.ntp.org iburst |
| - | #server 1.fedora.pool.ntp.org iburst | + | pool ntp.jst.mfeed.ad.jp iburst |
| - | #server 2.fedora.pool.ntp.org | + | pool ntp.nict.jp |
| - | #server 3.fedora.pool.ntp.org iburst | + | server s2csntp.miz.nao.ac.jp |
| - | server -4 ntp.nict.jp | + | pool ntp.ring.gr.jp |
| - | server | + | pool time.google.com iburst |
| - | server -4 s2csntp.miz.nao.ac.jp # NAO | + | |
| - | server -4 ntp.ring.gr.jp | + | |
| </ | </ | ||
| - | |||
| ===== ファイヤーウォールの設定 ===== | ===== ファイヤーウォールの設定 ===== | ||
| < | < | ||
| 行 55: | 行 51: | ||
| </ | </ | ||
| + | ===== 動作確認 ===== | ||
| + | < | ||
| + | $ sudo ntpdate -d timeserver | ||
| + | 10 Jan 01:42:07 ntpdate[2809]: | ||
| + | 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, | ||
| + | stratum 2, precision -24, leap 00, trust 000 | ||
| + | refid [133.243.238.163], | ||
| + | transmitted 4, in filter 4 | ||
| + | reference time: dfe02435.fe2f13ad | ||
| + | originate timestamp: dfe02455.9f9c7ecd | ||
| + | transmit timestamp: | ||
| + | filter delay: | ||
| + | | ||
| + | filter offset: 0.000000 -32400.8 0.000000 -32401.4 | ||
| + | | ||
| + | delay 0.66539, dispersion 24.32080 | ||
| + | offset -32400.827489 | ||
| + | |||
| + | 10 Jan 01:42:16 ntpdate[2809]: | ||
| + | </ | ||
| + | < | ||
| + | $ sudo ntpdate timeserver | ||
| + | 9 Jan 16:55:00 ntpdate[8074]: | ||
| + | </ | ||