vine-users ML アーカイブ



[vine-users:077738] ntpで時刻 同期ができていない?

  • From: kaz <okui@xxxxxxxxxxxx>
  • Subject: [vine-users:077738] ntpで時刻 同期ができていない?
  • Date: Wed, 31 Oct 2007 12:38:07 +0900
こんにちは
家庭内LANで専用PCにタイムサーバを動作させて、他はこれを参照するようにしてますが、どうも1秒遅れているのですが原因がわからないので御助言お願いします。

MA36H LAN内でのNTPサーバ vine3.1
/etc/ntp.conf
# Prohibit general access to this service
resrict default ignore
# Permit all access over the loopback interface
restrict 127.0.0.1
# -- CLIENT NETWORK --
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
# -- OUR TIMESERVER --
#restrict 210.173.160.27 mask 255.255.255.255 nomodufy notrap noquery
#restrict 210.173.160.57 mask 255.255.255.255 nomodify notrap noquery
#server 210.173.160.27
#server 210.173.160.57
restrict ntp.sannet.ne.jp mask 255.255.255.0 nomodify notrap noquery
server ntp.sannet.ne.jp
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10
driftfile /etc/ntp/drift
logfile /var/log/ntp.log
multicastclient                 # listen on default 224.0.1.1
broadcastdelay  0.008
authenticate no

[cas@MA36H cas]$ /usr/sbin/ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 LOCAL(0)        LOCAL(0)        10 l   13   64  377    0.000    0.000   0.031
*134.180.49.243  202.216.4.6      3 u  556 1024  377   26.136    3.753   6.006


P4G NTPクライアント vine4.1
/etc/ntp.conf
restrict default ignore
restrict 127.0.0.1
restrict 192.168.1.3 mask 255.255.255.0 nomodify notrap noquery
server 192.168.1.3
server 127.127.1.0      # local clock
fudge   127.127.1.0 stratum 10
driftfile /etc/ntp/drift
logfile /var/log/ntp.log
multicastclient                 # listen on default 224.0.1.1
broadcastdelay  0.008

[sus@P4G sus]$ /usr/sbin/ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*MA36H           134.180.49.243   4 u  132  256  377    0.766   -0.962   1.558
 LOCAL(0)        LOCAL(0)        10 l   49   64  377    0.000    0.000   0.004

最初はタイムサーバ210.173.160.27と210.173.160.57を有効にしてましたが
クライアントPCの時刻と電話で117にかけた時報が1秒ずれていました。クライアントPCの時刻が1秒遅れています。
ntpq -pをみるとLAN内のタイムサーバとクライアントの時刻は同期してるはずですので参照するタイムサーバをプロバイダのものにしましたがやっぱり1秒遅れています。
MA36Hを参照している他のLAN内のPCもみんな1秒ほど遅れています。

外部のタイムサーバは正確だとおもうのでLAN内のタイムサーバMA36Hがおかしいと思いますが原因がわかりません。