[Dnsmasq-discuss] DHCPv6 with dnsmasq for automated deployments

Oliver Freyermuth o.freyermuth at googlemail.com
Fri May 25 14:34:08 BST 2018


Am 25.05.2018 um 15:30 schrieb Kevin Darbyshire-Bryant:
> 
> 
>> On 25 May 2018, at 13:07, Oliver Freyermuth <o.freyermuth at googlemail.com> wrote:
>>
>> Dear dnsmasqers,
>>
>> I fear the following is a design issue of DHCPv6, but I wonder if there's a way to overcome it with dnsmasq...
> <snip>
> 
> Hi Oliver,
> 
> I’ve a similar/same problem when rebooting some QNAP NAS boxen, first boot/introduction to dnsmasq and they get both IPv4 & v6 addresses set to fixed values based on MAC address.  On reboot whilst IPv4 is fine, IPv6 is not reallocated to the original address but rather a new one.  By curious co-incidence I just started looking into this problem today though it has been bugging me for months :-)  Have tried various combinations of MAC address & DUID.
> 
> Without meaning to thread hijack!  If it’s not effectively the same issue will gladly start a new thread.

Dear Kevin, 

I think it's exactly the same issue. 
Comparing:
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 DHCPREQUEST(br-lan) 00:01:00:01:22:9a:b4:43:24:5e:be:0c:bc:ba
with
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 DHCPSOLICIT(br-lan) 00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba
it seems the QNAP NAS box is using a fresh client DUID each reboot... 

Cheers,
Oliver

> 
> 
> First boot with fresh dnsmasq
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 client MAC address: 24:5e:be:0c:bc:ba
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 DHCPREQUEST(br-lan) 00:01:00:01:22:9a:b4:43:24:5e:be:0c:bc:ba
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 DHCPREPLY(br-lan) 2a02:c7f:beef:2000::e 00:01:00:01:22:9a:b4:43:24:5e:be:0c:bc:ba Statler
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 tags: lan, known, dhcpv6, br-lan
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size: 14 option:  2 server-id  00:01:00:01:21:92:2f:dc:60:e3:27:af:9e:51
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size: 40 option:  3 ia-na  IAID=3132886206 T1=21600 T2=37800
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 nest size: 24 option:  5 iaaddr  2a02:c7f:beef:2000::e PL=43200 VL=43200
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size:  9 option: 13 status  0 success
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size:  1 option:  7 preference  255
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size: 29 option: 24 domain-search  lan.darbyshire-bryant.me.uk
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size: 16 option: 23 dns-server  2a02:c7f:beef:2000::da2b:da2b
> Fri May 25 12:47:13 2018 daemon.info dnsmasq-dhcp[26168]: 5514926 sent size: 38 option: 39 FQDN  Statler.lan.darbyshire-bryant.me.uk
> 
> 
> And now a reboot of the client:
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 available DHCP range: 2a02:c7f:beef:2000::1000 -- 2a02:c7f:beef:2000::ffff
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 client MAC address: 24:5e:be:0c:bc:ba
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 DHCPSOLICIT(br-lan) 00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 DHCPADVERTISE(br-lan) 2a02:c7f:beef:2000::9c72 00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba Statler
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 tags: lan, known, dhcpv6, br-lan
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size: 14 option:  1 client-id  00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size: 14 option:  2 server-id  00:01:00:01:21:92:2f:dc:60:e3:27:af:9e:51
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size: 40 option:  3 ia-na  IAID=3132886206 T1=21600 T2=37800
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 nest size: 24 option:  5 iaaddr  2a02:c7f:beef:2000::9c72 PL=43200 VL=43200
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size:  9 option: 13 status  0 success
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size:  1 option:  7 preference  255
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size: 29 option: 24 domain-search  lan.darbyshire-bryant.me.uk
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size: 16 option: 23 dns-server  2a02:c7f:beef:2000::da2b:da2b
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 12603117 sent size:  9 option: 39 FQDN  Statler
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 available DHCP range: 2a02:c7f:beef:2000::1000 -- 2a02:c7f:beef:2000::ffff
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 client MAC address: 24:5e:be:0c:bc:ba
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 DHCPREQUEST(br-lan) 00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 DHCPREPLY(br-lan) 2a02:c7f:beef:2000::9c72 00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba Statler
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 tags: lan, known, dhcpv6, br-lan
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size: 14 option:  1 client-id  00:01:00:01:22:9a:b7:2b:24:5e:be:0c:bc:ba
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size: 14 option:  2 server-id  00:01:00:01:21:92:2f:dc:60:e3:27:af:9e:51
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size: 40 option:  3 ia-na  IAID=3132886206 T1=21600 T2=37800
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 nest size: 24 option:  5 iaaddr  2a02:c7f:beef:2000::9c72 PL=43200 VL=43200
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size:  9 option: 13 status  0 success
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size:  1 option:  7 preference  255
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size: 29 option: 24 domain-search  lan.darbyshire-bryant.me.uk
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size: 16 option: 23 dns-server  2a02:c7f:beef:2000::da2b:da2b
> Fri May 25 12:59:40 2018 daemon.info dnsmasq-dhcp[26168]: 15821508 sent size: 38 option: 39 FQDN  Statler.lan.darbyshire-bryant.me.uk
> 
> 
> 
> Cheers,
> 
> Kevin D-B
> 
> 012C ACB2 28C6 C53E 9775  9123 B3A2 389B 9DE2 334A
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180525/3a24a7f4/attachment-0001.sig>


More information about the Dnsmasq-discuss mailing list