[Kea-users] DHCP6 host reservation

Darren Ankney darren.ankney at gmail.com
Mon Apr 1 11:42:31 UTC 2024


Hi Christina,

The simplest explanation is that the mac address (hw-address) is not
present in the DHCP packet.  In DHCPv6, the mac address may not be
present (it is usually only in the packet if the DHCP server is local,
or the relay agent is adding option 79 to the packet when relaying),
though Kea tries hard to find out what it is.  You can confirm what is
in the packet using tcpdump and wireshark.  See here for further
information: https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp6-srv.html#mac-hardware-addresses-in-dhcpv6

Thank you,
Darren Ankney

On Fri, Mar 29, 2024 at 1:50 PM Cristina Bulfon
<cristina.bulfon at roma1.infn.it> wrote:
>
> Dear all,
>
>
> I am newbie to the Kea DHCP6, I’d like to use only host reservations and for my understanding in the clause “subnet6” in addition to “reservations” must be configured also the “pools”  but the reservations should have priority in providing IPv6.
>
> Followis a piece of configuration :
>
> ...
>
>
> "host-reservation-identifiers": ["hw-address"],
>
>    "subnet6": [
>
>      {
>
>           "id": 1,
>
>           "subnet": "2001:760:422c:35::/64" ,
>
>           "reservations-in-subnet": true,
>
>           "reservations-out-of-pool": false,
>
>           "reservations-global": false,
>
>           "interface": "ens3",
>
>           "reservations" : [ <?include "/etc/kea/vlan135-ipv6.conf"?> ],
>
>           "pools": [{ "pool": "2001:760:422c:35::2 -2001:760:422c:35:ffff:ffff:ffff:ffff" } ]
>
>    }
>
>
> The include file has the following syntax
>
>
> {"hostname": “XXXXX”,”hw-address": “XX:YY:ZZ:AA:00:0o”,”ip-addresses": ["2001:760:422c:35::XYZ”] }
>
>
> ….
>
>
> With this configuration the ipv6 client get the IP from the pool and not from reservations, how  can I  avoid this?
>
>
> Any help is appreciated, thank you.
>
>
> Regards,
>
> Cristina
>
>
> --
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users


More information about the Kea-users mailing list