[Kea-users] multiple MACs to same IP

Veronique Lefebure Veronique.Lefebure at cern.ch
Tue Oct 10 07:09:45 UTC 2023


Hi,

On that topic, I see that [Kea-users] ip-reservations-unique and lease conflict (isc.org)<https://lists.isc.org/pipermail/kea-users/2022-October/003548.html> did not get an answer.
Has anyone else encountered the same issue as Marc ?

Thanks,
Veronique
________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Peter Davies <peterd at isc.org>
Sent: Tuesday, October 10, 2023 6:47 AM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: Re: [Kea-users] multiple MACs to same IP

Hi -m,
    You can use the "ip-reservations-unique": false,
See:
https://kea.readthedocs.io/en/kea-2.4.0/arm/dhcp4-srv.html#multiple-reservations-for-the-same-ip

/Peter

On 10/10/2023 02.41, Matt Zagrabelny via Kea-users wrote:
> Greetings,
>
> I'm migrating from ISC DHCPD to Kea.
>
> I have a laptop on my network that I want to get the same IP address
> if it is connected via wifi or if it is plugged in to hard-wired
> ethernet. This was possible in ISC DHCPD.
>
> In Kea I have database entries:
>
> # select * from hosts_human where hostname  ~ 'zirconium';
>     hostname    │    mac_address    │  ip_address
> ════════════════╪═══════════════════╪═══════════════
>  zirconium-wlo1 │ bc:17:b8:cb:8b:94 │ 192.168.0.226
>  zirconium-eno1 │ 0c:37:96:1f:04:ef │ 192.168.0.226
> (2 rows)
>
> ..but I get errors from the server:
>
> Oct 09 19:21:07 zed kea-dhcp4[5515]: INFO  DHCP4_LEASE_ADVERT
> [hwtype=1 bc:17:b8:cb:8b:94], cid=[01:bc:17:b8:cb:8b:94],
> tid=0x2c7fc3e4: lease 192.168.0.226 will be advertised
> Oct 09 19:21:07 zed kea-dhcp4[5515]: ERROR ALLOC_ENGINE_V4_ALLOC_ERROR
> [hwtype=1 bc:17:b8:cb:8b:94], cid=[01:bc:17:b8:cb:8b:94],
> tid=0x2c7fc3e4: error during attempt to allocate an IPv4 address:
> multiple records were found in the database where only one was
> expected for query get_host_subid_addr
>
> Am I missing something to allow this particular configuration?
>
> Or is it not possible in Kea (to do what was possible in ISC DHCPD)?
>
> Thanks for any help!
>
> -m
>
--
Peter Davies
Support Engineer
Internet Systems Corporation

--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20231010/0cc2b38e/attachment-0001.htm>


More information about the Kea-users mailing list