Top/Linux/NTP

NTP の変更点はてなブックマーク

  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • Linux/NTP へ行く。

計算機の時刻を別の計算機に合わせるために使用するプロトコル。~
Linuxではntpd,Windowsでは桜時計などでサーバ・クライアントともに実現できる。~
複数回実行する必要がなければntpdateで。

-[[Linux/NTP/server]]

以下では次のように仮定
|~NTPサーバ1|172.16.0.1|
|~NTPサーバ2|172.16.0.2|

*インストール
 apt-get install ntp

*ntpdate
 ntpdate 172.16.0.1
 hwclock --systohc

*ntpd
 vi /etc/ntp.conf
>
 restrict 172.16.0.1 mask 255.255.255.255 nomodify notrap noquery
 restrict 172.16.0.2 mask 255.255.255.255 nomodify notrap noquery

>
 #server 127.127.1.0     # local clock
 server  172.16.0.1
 server  172.16.0.2
 #fudge  127.127.1.0 stratum 10

>
 #authenticate yes
 authenticate no

 /etc/rc.d/init.d/ntpd start

 ntpq -p

 chkconfig ntpd on

*ポート
TCP/UDP 123

*関連
[[Windows/NTP]]

*参考
-[[NTPServer - *NTP Server 構築>http://www.sssg.org/wiki/index.jsp?pid=NTPServer]]
-[[ntp(基準時間サーバ)を動かしてみる>http://web.archive.org/web/20030220084749/http://www.lint.ne.jp/~tomo/server/ntp/linux/ntp-rh72.htm]]
-[[ntp.conf 等の説明>http://www.venus.dti.ne.jp/~yoshi-o/NTP/ntp_conf.html]]
-[[ntpdによるタイムサーバ構築>http://kurombo.dip.jp/FreeBSD/ntpd.html]]
-[[ntp memo>http://plamo.minidns.net/ntpmemo.html]]
差分 一覧