Don’t know that it would impact host reservations but Kea uses a subnet 
identifier for associating leases to a given subnet.   If the subnet identifier 
is not specified (“id” parameter), Kea will auto generate the id based upon 
order of the subnets in the config.   Thus, if order is changed the id of a 
given subnet could change.

I specify the “id” for each subnet to avoid such renumbering with changes to 
subnets in config.

See 
https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#ipv4-subnet-identifier


From: Kea-users <[email protected]> on behalf of Bohnenberger, 
Mark <[email protected]>
Date: Wednesday, August 31, 2022 at 1:30 AM
To: [email protected] <[email protected]>
Subject: [Kea-users] KEA subnet client reservation error
CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Good morning together,

last week I did a configuration change on a 2.0.0 KEA server and adding more 
subnets for DHCP addressing (as I did before). After adding new subnets after 
the already configured subnets, everything was working fine. Then I added new 
subnets before the already configured subnets in the config file and then the 
DHCP server is ignoring the configured DHCP reservations fort he clients. So 
the DHCP server was giving clients, which have a reservations in the config, a 
new DHCP lease and a new IP address. I tested the configuration on a test 
system and I was not recieving any error when I start the DHCP server, so there 
was no configuration error and same result on the live system. The DHCP service 
itself and the DHCP addressing is also working fine. Only the reservations were 
not work anymore. I did some tests and I can reproduce that error on the test 
system.

So my question are now, ist tehre a command for reordering the subnet 
configuration or for re-reading/rebuilding the subnet configuration on the DHCP 
server? Or does anyone have the same error?

The system is a Ubuntu 20 with KEA 2.0.0 in an HA setup. The configuration is 
config file and the leases are saved on a MySQL database.

########### New added subnet with problems
{
                "subnet": "10.8.1.0/24",
                "comment": "NEWNET",
                "pools": [ { "pool": "10.8.1.20 - 10.8.1.239" } ],
                "option-data": [
                               {
                               "name": "routers",
                               "data": "10.8.1.1"
                               }
                ]
},

########### Already configured subnet
{
                "subnet": "10.8.12.0/24",
                "comment": "FAKENET",
                "pools": [ { "pool": "10.8.12.20 - 10.8.12.239" } ],
                "reservations": [
                               {
                                               "hw-address": "12:34:56:78:90",
                                               "ip-address": "10.8.12.36",
                                               "hostname": "FAKENAME"
                               }
                ],
                "option-data": [
                               {
                               "name": "routers",
                               "data": "10.8.12.1"
                               }
                ]
},

########### New added subnet without problems
{
                "subnet": "10.8.1.0/24",
                "comment": "NEWNET",
                "pools": [ { "pool": "10.8.1.20 - 10.8.1.239" } ],
                "option-data": [
                               {
                               "name": "routers",
                               "data": "10.8.1.1"
                               }
                ]
},

Regards

Mark




Sensitivity: Internal
-- 
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
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to