DNSMASQ & DHCP Multiple IP Addresses

Started by jbhorner, May 30, 2025, 01:44:10 AM

Previous topic - Next topic
Per the help in DNSMASQ:


IP addresses of the host, e.g. 192.168.100.100 or fd00:abcd::1. Can be multiple IPv4 and IPv6 addresses for dual stack configurations. Setting multiple addresses will automatically assign the best match based on the subnet of the interface receiving the DHCP Discover.


Has anyone had success with this? It doesn't work for me. I have a laptop that goes between networks (via VLANs and differing switches). The DHCP address offered only works on one of the three interfaces; the others pull outside of the reserved address for that interface. I've also tried this for dual-stack IPv4 and IPv6 where there are two addresses--one IPv4 and one IPv6; the DUID is set appropriately.

Cheers!

It was a mistake and it has been corrected with a new validation and updated docs that will come out in the next release.

https://github.com/opnsense/core/issues/8711
Hardware:
DEC740

May 30, 2025, 07:18:23 PM #2 Last Edit: May 30, 2025, 10:10:04 PM by jbhorner
Got it. Thank you!

When I read the issue on Github, it appeared that dual-stack should work. Alas, I do not see those results either. Separately (IPv4 on one host entry, IPv6 on a second host entry), the correct addresses are allocated. If I combine IPv4 and IPv6 in one host entry (with the appropriate MAC address and client identifier [DUID]), the IPv6 address is not used.

Given that I do not need DHCP options outside of what are already offered in Kea through the UI, and since host DNS registration isn't something I need, I'll just move to Kea for both v4 and v6. (I don't agree with the approach of sticking with v6 on ISC; I'd rather have one area--and I'll be removing ISC when able to do so in 26.1.)