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 |
| 125 | Index: /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 === |