[Dnsmasq-discuss] Cannot serve DHCPv6 static "managed" addresses - NoAddrsAvail

James Feeney james at nurealm.net
Mon Aug 25 00:59:58 UTC 2025


Arch Linux
dnsmasq 2.91-1

man 8 dnsmasq

dhcp-range
 Addresses will be given out from the range <start-addr> to <end-addr>
 and
 from statically defined addresses given in --dhcp-host options.

dhcp-host
 Addresses allocated like this are not constrained to be in the range given by the --dhcp-range option,
 but they must be in the same subnet AS some valid dhcp-range.
 For subnets which do NOT need a  pool  of  dynamically allocated addresses, use the "static" keyword in the --dhcp-range declaration.

/etc/dnsmasq.conf
----
...
enable-ra
dhcp-range=2001:db8:3c4d:15::,2001:db8:3c4d:15::ff,static,96,3600
dhcp-host=id:00:01:00:01:30:3e:53:b2:00:1b:2c:3d:4e:5f,[2001:db8:3c4d:15::20]


```
$  sudo tcpdump -nvieth0 port 547

 ... dhcp6 solicit (xid=914a3b ...
(IA_NA IAID:0 T1:0 T2:0) (rapid-commit) (elapsed-time 0) (option-request DNS-server DNS-search-list SNTP-servers))

 ... dhcp6 reply (xid=914a3b ...
(rapid-commit) (IA_NA IAID:0 T1:4294967295 T2:4294967295 (status-code NoAddrsAvail)) (status-code NoAddrsAvail))
```

dnsmasq will allocate DHCPv6 dynamic addresses from a pool and bootps static addresses, but not DHCPv6 static addresses.
And yes, the client DUID matches exactly what is in the dnsmasq configuration file.

Am I doing something wrong?  Or, dnsmasq is doing something wrong?


James




More information about the Dnsmasq-discuss mailing list