[Kea-users] circuid-id only IP reservation

Marcin Jurczuk marcin at jurczuk.eu
Fri Jun 17 22:56:52 UTC 2022


Hi,

I'm working on setup where ip address reservation is made only by
circtuid-id value.
I've added respective config values:
"host-reservation-identifiers": [ "circuit-id" ]
I've added proper host reservation in MYSQL:
mysql> select * from hosts \G
*************************** 1. row ***************************
              host_id: 1
      dhcp_identifier: 0x657468322E333334
 dhcp_identifier_type: 2
      dhcp4_subnet_id: 1
      dhcp6_subnet_id: NULL
         ipv4_address: 170459147

First reservation is ok, when I change mac address of a device connecte to
given switch port (circuit-id stays the same) I'm getting different IP
address with following messsage in logs:
ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT [hwtype=1 52:83:2d:59:89:08],
cid=[01:52:83:2d:59:89:08], tid=0x42ae0700: conflicting reservation for
address 10.41.0.11 with existing lease

What I want to achieve is that ip reservation is selected based on
circuit-id not MAC in DISCOVER message. Customer changes his device - gets
the same IP.

rgds,

-- 
Marcin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220618/31ada13c/attachment.htm>


More information about the Kea-users mailing list