Changes between Version 13 and Version 14 of TipAndDoc/network/ntp


Ignore:
Timestamp:
Mar 28, 2011 7:36:13 PM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/ntp

    v13 v14  
    99 * [http://www.ipa.go.jp/security/awareness/administrator/secure-web/chap4/4_ntpd.html 4.2.3 ntpdのインストールと設定] 
    1010 * http://wiki.nothing.sh/page/NTP 
     11 * [http://www1.plala.or.jp/fukafuka/install/ntp.html ふかふかの部屋 - Install Memo - ntp] 
    1112 
    1213 == /etc/ntp.conf == 
     
    104105}}} 
    105106 
    106  == fource IPv4 == 
     107 == IPv4/IPv6 == 
     108 * 一部のサーバはIPv6のアドレスも返すが、restrictにIPv6アドレスを記載しておかないと正常に同期されない 
     109{{{ 
     110     remote           refid      st t when poll reach   delay   offset  jitter 
     111============================================================================== 
     112 2001:e40:100:20 .INIT.          16 u    -   64    0    0.000    0.000   0.000 
     113 ntp-a2.nict.go. .RMOT.          16 u    -   64    0    0.000    0.000   0.000 
     114 ntp-a3.nict.go. .RMOT.          16 u    -   64    0    0.000    0.000   0.000 
     115*ntp1.jst.mfeed. 210.173.160.86   2 u   33   64   77    1.211    1.284   0.246 
     116+phoenix-gw.netl 210.173.160.57   3 u   29   64   77    7.696    2.152   0.600 
     117 LOCAL(0)        .LOCL.           5 l   34   64   77    0.000    0.000   0.001 
     118}}} 
     119  * ntp1.sakura.ad.jp => 2001:e40:100:208::123 
     120  * ntp.nict.jp => 2001:2f8:29:100::fff3 / 2001:2f8:29:100::fff4 
     121  * その他 => http://wiki.nothing.sh/page/NTP を参照 
     122 
     123 * /etc/ntp.conf 
     124{{{#!diff 
     125Index: /etc/ntp.conf 
     126=================================================================== 
     127--- /etc/ntp.conf       (revision 539) 
     128+++ /etc/ntp.conf       (revision 540) 
     129@@ -14,12 +14,14 @@ 
     130 
     131 # You do need to talk to an NTP server or two (or three). 
     132 #server ntp.ubuntu.com 
     133-server ntp1.sakura.ad.jp           # Sakura => 210.188.224.14 
     134-server ntp.nict.jp                 # NICT => 210.171.226.40 
     135-server ntp.nict.jp                 # NICT => 133.243.238.163 
     136-server ntp.nict.jp                 # NICT => 133.243.238.164 
     137-server ntp.nict.jp                 # NICT => 133.243.238.243 
     138-server ntp.nict.jp                 # NICT => 133.243.238.244 
     139+server -4 ntp1.sakura.ad.jp        # Sakura => 210.188.224.14 
     140+server ntp1.sakura.ad.jp           # Sakura => 2001:e40:100:208::123 
     141+server -4 ntp.nict.jp              # NICT => 133.243.238.163 
     142+server -4 ntp.nict.jp              # NICT => 133.243.238.164 
     143+server -4 ntp.nict.jp              # NICT => 133.243.238.243 
     144+server -4 ntp.nict.jp              # NICT => 133.243.238.244 
     145+server ntp.nict.jp                 # NICT => 2001:2f8:29:100::fff3 
     146+server ntp.nict.jp                 # NICT => 2001:2f8:29:100::fff4 
     147 server ntp.jst.mfeed.ad.jp         # MFEED => 210.173.160. 
     148 server ntp.netlab.is.tsukuba.ac.jp # => 130.158.83.97 
     149 
     150@@ -49,7 +51,6 @@ 
     151 
     152 
     153 restrict 210.188.224.14  mask 255.255.255.255 nomodify notrap noquery 
     154-restrict 210.171.226.40  mask 255.255.255.255 nomodify notrap noquery 
     155 restrict 133.243.238.163 mask 255.255.255.255 nomodify notrap noquery 
     156 restrict 133.243.238.164 mask 255.255.255.255 nomodify notrap noquery 
     157 restrict 133.243.238.243 mask 255.255.255.255 nomodify notrap noquery 
     158@@ -58,6 +59,9 @@ 
     159 restrict 210.173.160.57  mask 255.255.255.255 nomodify notrap noquery 
     160 restrict 210.173.160.87  mask 255.255.255.255 nomodify notrap noquery 
     161 restrict 130.158.83.97   mask 255.255.255.255 nomodify notrap noquery 
     162+restrict 2001:e40:100:208::123 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff nomodify notrap noquery 
     163+restrict 2001:2f8:29:100::fff3 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff nomodify notrap noquery 
     164+restrict 2001:2f8:29:100::fff4 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff nomodify notrap noquery 
     165 
     166 
     167 # If you want to provide time to your local subnet, change the next line. 
     168}}} 
     169 
     170 === force IPv4 === 
    107171 1. /etc/default/ntp (Ubuntu) 
    108172{{{