ホーム » コンピュータ » Linux » Debian » あけおめでNTP設定を見直す

あけおめでNTP設定を見直す

あけおめPOSTをしようとしたら、1分ほど出遅れた。 Windowsマシンが1分時計がずれていた。 ちゃんと設定していたつもりだったけど、Windows7は、w32tm コマンドで設定するのか…

Debianサーバ側をNTP問い合わせに返答できるようにする
(( /etc/ntp.conf ))
restrict 192.168.X.0 mask 255.255.255.0 nomodify notrap

Windows側で、NTPを参照するために、管理者状態になったうえで、 NTPサーバの登録を行う。

(( Windows/7 ))
管理者状態でcmdを起動
[Start]-[cmd.exe]-[Ctrl+Shift+Enter]
NTPサーバを設定する。
> w32tm /config /update \
/manualpeerlist:"192.168.X.Y ntp.ttn.ne.jp"
NTP同期を強制的にかける
> w32tm /resync