Hello Cristina,

dhcpv6 does not match on MAC address. You should match on DUID. You can find 
the correct DUID for the client in the leases file.

So the reservation should look like this:

{"hostname": “XXXXX”,”duid": “00:01:00:.....:XX:YY:ZZ:AA:00:0o”,”ip-addresses": 
["2001:760:422c:35::XYZ”] }

If the client is a windows machine, it would probably must also match on iaid 
parameter.

Marek

On Friday, March 29th, 2024 at 18:49, Cristina Bulfon 
<cristina.bul...@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@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to