Changes between Version 11 and Version 12 of TipAndDoc/network/ntp


Ignore:
Timestamp:
Mar 28, 2011 6:45:14 PM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/ntp

    v11 v12  
    1111 
    1212 * /etc/ntp.conf 
     13 
     14 == IPv6 == 
     15 === fource IPv4 === 
     16 1. /etc/default/ntp (Ubuntu) 
     17{{{ 
     18NTPD_OPTS='-g -4' 
     19}}} 
     20  * ntpq -pでpeerに接続出来なくなる 
     21  * $ ntpq -p 
     22{{{ 
     23localhost: timed out, nothing received 
     24***Request timed out 
     25}}} 
     26  * ntpq -p4 とすることで回避出来る 
     27{{{ 
     28     remote           refid      st t when poll reach   delay   offset  jitter 
     29============================================================================== 
     30 ntp-b3.nict.go. .NICT.           1 u   29   64    3   11.385   -0.560   0.497 
     31 ntp-b2.nict.go. .NICT.           1 u   26   64    3    8.957   -0.115   0.567 
     32 ntp-a3.nict.go. .NICT.           1 u   30   64    3    8.522   -0.643   0.521 
     33 ntp-a2.nict.go. .NICT.           1 u   28   64    3    7.413   -0.117   0.603 
     34 ntp2.jst.mfeed. 210.173.160.86   2 u   27   64    3   18.359    0.371   1.393 
     35 phoenix-gw.netl 210.173.160.27   3 u   26   64    3   12.690    1.117   0.165 
     36 LOCAL(0)        .LOCL.           5 l   24   64    3    0.000    0.000   0.001 
     37}}} 
     38 1. 「server -4 ntp.nict.jp」とする 
     39  * $ grep '\-4' /etc/ntp.conf 
     40{{{ 
     41server -4 ntp.nict.jp                 # NICT => 133.243.238.163 
     42server -4 ntp.nict.jp                 # NICT => 133.243.238.164 
     43server -4 ntp.nict.jp                 # NICT => 133.243.238.243 
     44server -4 ntp.nict.jp                 # NICT => 133.243.238.244 
     45}}} 
     46  * [http://slashdot.jp/it/comments.pl?sid=320170&cid=958763&threshold=-1 コメント: NTPによる日本標準時配信開始 - スラッシュドット・ジャパン] 
     47  * $ ntpd --help | grep IP 
     48{{{ 
     49   -4 no  ipv4           Force IPv4 DNS name resolution 
     50   -6 no  ipv6           Force IPv6 DNS name resolution 
     51   -L no  novirtualips   Do not listen to virtual IPs 
     52}}} 
    1353 
    1454 == refer local clock ==