<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I am struggling to get static ipv6 leases to work in the following
environment.<br>
<br>
Rasperry pi, running debian stretch dnsmasq. Talking to lede/openwrt
router running dnsmasq.<br>
<br>
Starting from the router, dnsmasq gets an ipv6 suffix from dhcpv6-pd
as follows:<br>
<br>
<small><strong>Type: </strong>dhcpv6-pd<br>
<strong>Prefix Delegated: </strong>2001:8b0:1418:4c2f::/64<br>
<strong>Address: </strong>2001:8b0:1111:1111::ffff:d9a9:d04/128<br>
<strong>Gateway: </strong>fe80::203:97ff:fe33:0<br>
<strong>DNS 1: </strong>2001:8b0::2020<br>
<strong>DNS 2: </strong>2001:8b0::2021<br>
<br>
The static lease is configured as follows in the luci config<br>
<br>
config host <br>
option mac 'b8:27:eb:d4:eb:54'<br>
option leasetime 'infinite'<br>
option ip '192.168.10.9'<br>
option name 'brynpbx'<br>
option duid '00:01:00:01:21:44:28:4a:b8:27:eb:71:99:03'<br>
option hostid '1' <br>
<br>
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..<br>
<br>
</small>
<pre><small> /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</small></pre>
<small>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.<br>
<br>
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. <br>
<br>
Do I need some different config on the router?<br>
<br>
Do I need some additional config on the pi?<br>
<br>
Any help gratefully accepted.<br>
<br>
Roger<br>
<strong></strong></small>
</body>
</html>