DHCPv6 only on ULA

I've set some static leases such as

dhcp.cfg11fe63=host
dhcp.cfg11fe63.mac='F0:2F:74:DB:E2:0A'
dhcp.cfg11fe63.duid='0004a84ba813a147aa8e757ed56ff0be3c4b'
dhcp.cfg11fe63.dns='1'
dhcp.cfg11fe63.hostid='45'
dhcp.cfg11fe63.ip='192.168.208.45'

And it works, handing out IPv6 addresses ending in ::45. However, this sets both an IP in the ISP-provided public routable prefix (2804:x:x:x::45) and in the ULA prefix (fd9c:7141:6ac::45). I'd like only the latter, for public addresses I'd rather have only the SLAAC assigned ones. Is it possible to configure DHCPv6 only for ULA addresses?

Pretty sure this is not possible as host sections apply to all delegated prefixes.
Also reading Odhcpd documentation provides no option to accomplish this:
https://openwrt.org/docs/techref/odhcpd

If that deeply concerns you, consider utilizing NAT6:
https://openwrt.org/docs/guide-user/network/ipv6/ipv6.nat6

Actually, it looks like static leases only apply to DHCPv6.
At the same time, SLAAC seems to be preferred over DHCPv6.

1 Like