I am struggling to get static ipv6 leases to work in the following environment.

Rasperry pi, running debian stretch dnsmasq. Talking to lede/openwrt router running dnsmasq.

Starting from the router, dnsmasq gets an ipv6 suffix from dhcpv6-pd as follows:

*Type: *dhcpv6-pd
*Prefix Delegated: *2001:8b0:1418:4c2f::/64
*Address: *2001:8b0:1111:1111::ffff:d9a9:d04/128
*Gateway: *fe80::203:97ff:fe33:0
*DNS 1: *2001:8b0::2020
*DNS 2: *2001:8b0::2021

The static lease is configured as follows in the luci config

config host
        option mac 'b8:27:eb:d4:eb:54'
        option leasetime 'infinite'
        option ip ''
        option name 'brynpbx'
        option duid '00:01:00:01:21:44:28:4a:b8:27:eb:71:99:03'
        option hostid '1'

The duid is taken from a file called dhcpcd.duid on the pi (brynpbx). This may be a red herring because whatever duid is use it seems to get ignored. and all the ipv6 addresses the pi gets seem to be either link local or globals not taken from the delegated prefix. the pi is running dnsmaq with the following parameters..

 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5 --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d

I dont think dhcpcd is actually being run. Though I am not sure at this moment. I need to move the pi to an isolated network to find this out.

What am I mssing here? I am struggling to find a reference to the dhcpcd.duid anywhere on the pi. The duid field in the dhcpcd.conf file appears to be commented out.

Do I need some different config on the router?

Do I need some additional config on the pi?

Any help gratefully accepted.

Dnsmasq-discuss mailing list

Reply via email to