NTP

(At your own risk)
NTP関係パッケージ( ntp ntp-doc ntpdate)をインス トールする。電波時計などのデバイスを有している場合はntp-simpleの替りに ntp-refclockを入れる(単純に他Serverを参照する場合はntp-simpleでOK)。
/etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

server ntp.nc.u-tokyo.ac.jp
server clock.tl.fukuoka-u.ac.jp
server clock.nc.fukuoka-u.ac.jp

server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

restrict 127.0.0.1
restrict ::1

broadcast x.x.x.255
disable auth
broadcastclient

/etc/default/ntpdate
NTPSERVERS="ntp.nc.u-tokyo.ac.jp clock.tl.fukuoka-u.ac.jp clock.nc.fukuoka-u.ac.jp pool.ntp.org"

動作確認
 $ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*ntp.nc.u-tokyo. .GPS.            1 u   45   64  377   18.343  -14.693   2.204
xclock.tl.fukuok .GPS.            1 u   32   64  377   35.566  -15.189   3.655
+clock.nc.fukuok .GPS.            1 u   38   64  377   34.677  -12.953   2.165
+boogey.rootshel 216.32.94.18     3 u   40   64  377  290.856  -24.715   2.644
 LOCAL(0)        LOCAL(0)        13 l   34   64  377    0.000    0.000   0.004
 $ sudo netstat -uap | grep ntp
udp        0      0 smtp.n-yama.jp:ntp      *:*                                6363/ntpd
udp        0      0 localhost.localdoma:ntp *:*                                6363/ntpd
udp        0      0 *:ntp                   *:*                                6363/ntpd
udp6       0      0 *:ntp                   *:*                                6363/ntpd

Last modified: Sun Apr 2 12:09:28 JST 2006