[Kea-users] Overlapping Subnets
Matt Aiken
maiken at conterra.com
Tue Jul 30 05:21:37 UTC 2024
I am hoping someone count point me in the right direction or tell me I'm headed towards a dead-end with setting up overlapping subnets in Kea. I saw in the ARM for the version I am using, 2.6.0, that overlapping subnets are supported however I am getting an error from kea-dhcp4 daemon that states "...shared-networks: subnet with the prefix of '192.0.2.0/24' already exists", with the configuration I have below.
I've tried with and without placing the subnets under the shared-networks object and several other adjustments, the closest I can get to the desired behavior is to set one subnet up as a /23 and the other as a /24 and adjusting the pools but this does not meet my requirements. The client-classification and everything works great.... Its just the overlapping subnets that is throwing me for a loop with my configuration.
I did find a post on the Kea user mailing list from 2017, but it was left unanswered.
{
"Dhcp4" : {
"client-classes" : [
{
"name" : "red",
"test" : "substring(option[82].option[151].hex,1,all) == 'red'"
},
{
"name" : "blue",
"test" : "substring(option[82].option[151].hex,1,all) == 'blue'"
}
],
"shared-networks" : [
{
"name" : "red-192-0-2",
"subnet4": [
{
"id" : 1000,
"client-class" : "red",
"subnet": "192.0.2.0/24",
"pools": [{ "pool": "192.0.2.100 - 192.0.2.200" }],
"option-data" : [
{ "name" : "routers", "data" : "192.0.2.1" },
]
}
]
},
{
"name" : "blue-192-0-2",
"subnet4" : [
{
"id" : 1001,
"client-class" : "blue",
"subnet": "192.0.2.0/24",
"pools": [{ "pool": "192.0.2.100 - 192.0.2.200" }],
"option-data" : [
{ "name" : "routers", "data" : "192.0.2.1" }
]
}
]
}
]
}
}
This e-mail may contain information that is confidential or privileged. If you are not the intended recipient, do not read, copy or distribute the e-mail or any attachments. Instead, please notify the sender and delete the e-mail and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240730/4da0c4dc/attachment-0001.htm>
More information about the Kea-users
mailing list