[Kea-users] multiple MACs to same IP

Peter Davies peterd at isc.org
Tue Oct 10 04:47:49 UTC 2023


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



More information about the Kea-users mailing list