差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:ntp [2019/01/06 09:51] – [NTPサーバーの設定] ともやん | linux:ntp [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| ===== パッケージインストール ===== | ===== パッケージインストール ===== | ||
| < | < | ||
| - | $ sudo dnf install ntp | + | $ sudo dnf install ntp ntpdate |
| </ | </ | ||
| - | |||
| ===== NTPサーバーの設定 ===== | ===== NTPサーバーの設定 ===== | ||
| 設定ファイルのバックアップ。 | 設定ファイルのバックアップ。 | ||
| 行 52: | 行 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]: | ||
| + | </ | ||