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@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to