[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ntpd confusion



Am 22.11.2014 um 22:01 schrieb Erwan David:
> Le 22/11/2014 21:57, mad a écrit :
>> Hi!
>>
>> I'm stumped. On my home network all my Debian installations _only_ use
>> the router as clock source.
>>
>> # ntpq -p
>> remote          refid    st t when poll reach   delay   offset  jitter
>> ========================================================================
>> fritz.box       X.Y.Z.A   3 u    -   64    1    1.874    0.153   0.052
>>
>> I use the default ntp configuration and other Debian installations
>> "directly on the internet" use all four clock sources
>> (0.debian.pool...., 1.debian.pool...).
>>
>> Why is that? It seems to have something to do with IPv4 and IPv6. If I
>> start ntpd with '-4 -n' ntpq exists with 'Connection refused'. If I
>> start it with '-6 -n' ntpq says 'No association ID's returned'.
>>
>> I'm thoroughly confused.
>>
>> Does anyone knows what's happening?
>>
>> TIA
>> mad
>>
>>
> 
> Does your router announce itself as ntp server in the dhcp answer ?

No, at least that is what I read from the answer (removed several lines):

# dhcpdump -i eth0
    IP: A.B.C.25 > A.B.C.1
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 4cf07154
  SECS: 0
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         3 (DHCPREQUEST)
OPTION:  50 (  4) Request IP address        0.0.0.0
---------------------------------------------------------------------------

  TIME: 2014-11-23 15:33:49.014
    IP: A.B.C.1 > 255.255.255.255
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 4cf07154
  SECS: 0
 FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: A.B.C.1
GIADDR: 0.0.0.0
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         6 (DHCPNAK)
---------------------------------------------------------------------------

  TIME: 2014-11-23 15:33:49.014
    IP: A.B.C.25 > A.B.C.1
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 4cf07154
  SECS: 0
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         7 (DHCPRELEASE)
---------------------------------------------------------------------------


Reply to: