[Kea-users] DHCP6 host reservation
Marek Greško
marek.gresko at protonmail.com
Sat Mar 30 11:55:34 UTC 2024
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.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240330/2d84546f/attachment-0001.htm>
More information about the Kea-users
mailing list