Question about DHCPv6 Static Mappings
-
I have a laptop which I normally use with a dock, but I also occasionally use it with the built-in ethernet and Wi-Fi adapters.
For my owned devices I create static mappings so I can easily see if a non-typical device has been connected to my LAN.
I created three DHCP Static Mappings, all with the same host name for the docked ethernet, the built-in ethernet and the WiFi, respectively.
I tried to create three similar DHCPv6 Static Mappings, but it was not possible, because it would not accept the same host name for more than one mapping.
Since it works for DHCP, but not for DHCPv6, should it be considered a bug for DHCPv6?
This is on pfSense 2.7.2.
-
ISC ? Kea ?
Also : IPv6 DHCP RFC's allow this ?Btw : imho : consider using 2.8.0 RC for more recent DHCP kea support.
-
consider using 2.8.0 RC
or wait a couple of weeks for the release
I tried to create three similar DHCPv6 Static Mappings, but it was not possible, because it would not accept the same host name for more than one mapping.
@bimmerdriver I verified two mappings to work with KEA on the latest pfSense+ 25.03 beta, which is more of less the same as 2.8.0 RC. Just make sure the DUID you specify is unique, the laptop should send different DUIDs for the various connection scenarios.
-
@pst said in Question about DHCPv6 Static Mappings:
I verified two mappings to work with KEA on the latest pfSense+ 25.03 beta
I think I spoke too soon, there might still be issues in the latest beta. I managed to create a mapping for a device using the tracking interface format (::nnn) but I get an error
This Hostname, IP or DUID already exists.
when I specify a full address (prefix::nnn)
-
As 25.03 Beta now proposes :
Get yourself a small guided tour in here : /usr/local/etc/kea/kea-dhcp6.conf
and see how the reservation section is made.
With this knowledge, create your own 'JSON' structure that doubles a lease reservation and past it in the what I've shown above.
What you entered will be 'lint' tested, and beware : kea (json) is picky. Syntax errors are forbidden.When saved (and pfSense did't explode ^^) go to the DHCP serbver logs and see if kea complained.
If it does, and knowing that kea is "RFC" compliant (right ?), the issue is solved : It's not possible to make double leases as its not allowed.
If it does accept : make a feature request ?! -
@Gertjan said in Question about DHCPv6 Static Mappings:
ISC ? Kea ?
Also : IPv6 DHCP RFC's allow this ?Btw : imho : consider using 2.8.0 RC for more recent DHCP kea support.
Good questions.
The system is using Kea.
I never considered that DHCPv6 might not allow multiple reservations, even though DHCP does.
I'm running 2.8.0 but it's a test system. My "production" system is running 2.7.2.
-
This post is deleted! -
@Gertjan I didn't have a chance to try JSON, but I read the KEA documentation. As far as I understood, it is allowable for there to be multiple reservations for a client, particularly when they are for different hardware, which is the case in my situation.
-
@Gertjan Thanks for the suggestion, but I unfortunately have no way to try this right now because I'm running CE 2.7.2.
I see it's also in CE 2.8.0, but my test system running that version is virtual, so I won't be able to try it until I upgrade my main system to 2.8.0, which won't be until it gets released.