[Kea-users] DHCP6 host reservation

Cristina Bulfon cristina.bulfon at roma1.infn.it
Mon Apr 1 13:50:13 UTC 2024


Hi Marek and Darren,

Thanks for the answer

-  reply to Mark's reply
I’ve just tried the “duid” option instead  of  the “hw-address” and it works,   but - I guess - the node must already be installed to have the client leases .
Our nodes supporting both ipv4 and ipv6 and the goal is to  have in one shot  the nodes already installed with both IP’s ,  I didn’t find the way to know the duid in advance 

- reply to Darren’s reply
So if I understand I can use the option “hw-address” in host reservation If my relay support the option 79 . I will try.

Thanks so much, Regards 

Cristina 


> On 1 Apr 2024, at 13:42, Darren Ankney <darren.ankney at gmail.com> wrote:
> 
> 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
> -- 
> 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