[Dnsmasq-discuss] DHCPv6

Simon Kelley simon at thekelleys.org.uk
Wed Apr 10 09:23:27 BST 2013


On 10/04/13 08:06, Christof Meerwald wrote:
> On Tue, 09 Apr 2013 10:18:15 +0100, Simon Kelley wrote:
>>> Hope that helps...
>>
>> It helps a lot, but there must be other stuff going on here that we
>> don't have logs for. The crucial thing to look for is the IAID: that's
>> logged in the ia-na options which dnsmasq is sending, and it appears as
>> the second field in the leases file.
>
> I have checked all the logs and there is no IAID 2147483647 being
> logged by dnsmasq.
>
> Here are some more logs - this time with a tcpdump of the DHCPv6
> requests. Again, I restarted dnsmasq between 7:39 and 7:42 (the
> tcpdump log is shown in BST, dnsmasq in GMT - so the times correspond).
>
>
> 07:39:16.848824 IP6 (hlim 1, next-header UDP (17) payload length: 92) fe80::226:9eff:fe38:e5fb.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=a2fe8f (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (option-request DNS-search-list Client-FQDN DNS-server NTP-server) (elapsed-time 0) (IA_NA IAID:2654529019 T1:3600 T2:5400 (IA_ADDR 2a01:348:236:feed::13 pltime:7200 vltime:10800) (opt_0) (opt_0) (opt_0)))
> 07:39:16.856135 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload length: 130) fe80::ba27:ebff:fea5:5a4f.547 > fe80::226:9eff:fe38:e5fb.546: [udp sum ok] dhcp6 advertise (xid=a2fe8f (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (server-ID hwaddr/time type 1 time 418604073 b827eba55a4f) (IA_NA IAID:2654529019 T1:3600 T2:6300 (IA_ADDR 2a01:348:236:feed::13 pltime:7200 vltime:7200)[|dhcp6ext]) (status-code success) (preference 0) (DNS-server 2a01:348:236:feed::1))
> 07:39:17.900212 IP6 (hlim 1, next-header UDP (17) payload length: 110) fe80::226:9eff:fe38:e5fb.546 > ff02::1:2.547: [udp sum ok] dhcp6 request (xid=701734 (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (server-ID hwaddr/time type 1 time 418604073 b827eba55a4f) (option-request DNS-search-list Client-FQDN DNS-server NTP-server) (elapsed-time 0) (IA_NA IAID:2654529019 T1:3600 T2:5400 (IA_ADDR 2a01:348:236:feed::13 pltime:7200 vltime:7500) (opt_0) (opt_0) (opt_0)))
> 07:39:17.920097 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload length: 125) fe80::ba27:ebff:fea5:5a4f.547 > fe80::226:9eff:fe38:e5fb.546: [udp sum ok] dhcp6 reply (xid=701734 (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (server-ID hwaddr/time type 1 time 418604073 b827eba55a4f) (IA_NA IAID:2654529019 T1:3600 T2:6300 (IA_ADDR 2a01:348:236:feed::13 pltime:7200 vltime:7200)[|dhcp6ext]) (status-code success) (DNS-server 2a01:348:236:feed::1))
>
> 07:42:27.568648 IP6 (hlim 1, next-header UDP (17) payload length: 92) fe80::226:9eff:fe38:e5fb.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=60115e (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (option-request DNS-search-list Client-FQDN DNS-server NTP-server) (elapsed-time 0) (IA_NA IAID:2654529019 T1:3600 T2:5400 (IA_ADDR 2a01:348:236:feed::13 pltime:7200 vltime:10800) (opt_0) (opt_0) (opt_0)))
> 07:42:27.576547 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload length: 130) fe80::ba27:ebff:fea5:5a4f.547 > fe80::226:9eff:fe38:e5fb.546: [udp sum ok] dhcp6 advertise (xid=60115e (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (server-ID hwaddr/time type 1 time 418604073 b827eba55a4f) (IA_NA IAID:2654529019 T1:5400 T2:9450 (IA_ADDR 2a01:348:236:feed::da3b pltime:10800 vltime:10800)[|dhcp6ext]) (status-code success) (preference 0) (DNS-server 2a01:348:236:feed::1))
> 07:42:28.630072 IP6 (hlim 1, next-header UDP (17) payload length: 110) fe80::226:9eff:fe38:e5fb.546 > ff02::1:2.547: [udp sum ok] dhcp6 request (xid=587bf0 (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (server-ID hwaddr/time type 1 time 418604073 b827eba55a4f) (option-request DNS-search-list Client-FQDN DNS-server NTP-server) (elapsed-time 0) (IA_NA IAID:2654529019 T1:3600 T2:5400 (IA_ADDR 2a01:348:236:feed::da3b pltime:7200 vltime:7500) (opt_0) (opt_0) (opt_0)))
> 07:42:28.652005 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload length: 125) fe80::ba27:ebff:fea5:5a4f.547 > fe80::226:9eff:fe38:e5fb.546: [udp sum ok] dhcp6 reply (xid=587bf0 (client-ID hwaddr/time type 1 time 418602092 00269e38e5fb) (server-ID hwaddr/time type 1 time 418604073 b827eba55a4f) (IA_NA IAID:2654529019 T1:3600 T2:6300 (IA_ADDR 2a01:348:236:feed::da3b pltime:7200 vltime:7200)[|dhcp6ext]) (status-code success) (DNS-server 2a01:348:236:feed::1))
>
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 available DHCP range: 2a01:348:236:feed::d000 -- 2a01:348:236:feed::dfff
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 DHCPSOLICIT(eth0) 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 DHCPADVERTISE(eth0) 2a01:348:236:feed::13 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 requested options: 24:domain-search, 39:FQDN, 23:dns-server,
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 requested options: 31:sntp-server
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 tags: known, dhcpv6, eth0
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 sent size: 14 option:  1 client-id  00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 sent size: 14 option:  2 server-id  00:01:00:01:18:f3:64:29:b8:27:eb:a5:5a:4f
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 sent size: 40 option:  3 ia-na  IAID=2654529019 T1=3600 T2=6300
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 nest size: 24 option:  5 iaaddr  2a01:348:236:feed::13 PL=7200 VL=7200
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 sent size:  9 option: 13 status  0 success
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 sent size:  1 option:  7 preference  0
> Apr 10 06:39:16 localhost dnsmasq-dhcp[2917]: 10681999 sent size: 16 option: 23 dns-server  2a01:348:236:feed::1
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 available DHCP range: 2a01:348:236:feed::d000 -- 2a01:348:236:feed::dfff
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 DHCPREQUEST(eth0) 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 DHCPREPLY(eth0) 2a01:348:236:feed::13 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 requested options: 24:domain-search, 39:FQDN, 23:dns-server,
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 requested options: 31:sntp-server
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 tags: known, dhcpv6, eth0
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 sent size: 14 option:  1 client-id  00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 sent size: 14 option:  2 server-id  00:01:00:01:18:f3:64:29:b8:27:eb:a5:5a:4f
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 sent size: 40 option:  3 ia-na  IAID=2654529019 T1=3600 T2=6300
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 nest size: 24 option:  5 iaaddr  2a01:348:236:feed::13 PL=7200 VL=7200
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 sent size:  9 option: 13 status  0 success
> Apr 10 06:39:17 localhost dnsmasq-dhcp[2917]: 7345972 sent size: 16 option: 23 dns-server  2a01:348:236:feed::1
>
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 available DHCP range: 2a01:348:236:feed::d000 -- 2a01:348:236:feed::dfff
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 DHCPSOLICIT(eth0) 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 DHCPADVERTISE(eth0) 2a01:348:236:feed::da3b 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 requested options: 24:domain-search, 39:FQDN, 23:dns-server,
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 requested options: 31:sntp-server
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 tags: known, dhcpv6, eth0
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 sent size: 14 option:  1 client-id  00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 sent size: 14 option:  2 server-id  00:01:00:01:18:f3:64:29:b8:27:eb:a5:5a:4f
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 sent size: 40 option:  3 ia-na  IAID=2654529019 T1=5400 T2=9450
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 nest size: 24 option:  5 iaaddr  2a01:348:236:feed::da3b PL=10800 VL=10800
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 sent size:  9 option: 13 status  0 success
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 sent size:  1 option:  7 preference  0
> Apr 10 06:42:27 localhost dnsmasq-dhcp[2926]: 6295902 sent size: 16 option: 23 dns-server  2a01:348:236:feed::1
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 available DHCP range: 2a01:348:236:feed::d000 -- 2a01:348:236:feed::dfff
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 DHCPREQUEST(eth0) 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 DHCPREPLY(eth0) 2a01:348:236:feed::da3b 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 requested options: 24:domain-search, 39:FQDN, 23:dns-server,
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 requested options: 31:sntp-server
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 tags: known, dhcpv6, eth0
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 sent size: 14 option:  1 client-id  00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 sent size: 14 option:  2 server-id  00:01:00:01:18:f3:64:29:b8:27:eb:a5:5a:4f
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 sent size: 40 option:  3 ia-na  IAID=2654529019 T1=3600 T2=6300
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 nest size: 24 option:  5 iaaddr  2a01:348:236:feed::da3b PL=7200 VL=7200
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 sent size:  9 option: 13 status  0 success
> Apr 10 06:42:28 localhost dnsmasq-dhcp[2926]: 5798896 sent size: 16 option: 23 dns-server  2a01:348:236:feed::1
>
> and that's the resulting dnsmasq.leases file:
>
> 1365586946 00:26:9e:38:e5:fb 192.168.174.13 twilight *
> duid 00:01:00:01:18:f3:64:29:b8:27:eb:a5:5a:4f
> 1365583348 2654529019 2a01:348:236:feed::da3b * 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
> 1365583157 2147483647 2a01:348:236:feed::13 * 00:01:00:01:18:f3:5c:6c:00:26:9e:38:e5:fb
>
>

Fantastic bug report, thank you. That puts the ball right back in my court.


Hmm: 2147483647, that looks familiar. MAXINT? <Wanders off, poking at code>

Cheers,

Simon.

> Christof
>




More information about the Dnsmasq-discuss mailing list