[Kea-users] one interface, multiple subnets
Marco Broglia
marco.broglia at mutex.it
Mon Oct 23 09:07:05 UTC 2017
> On 16/10/2017 19:45, Francis Dupont wrote:
>> => in fact not only you can but it is likely the easiest.
>>
>> But if you can wait for the next release (end of this month) it has
>
> Francis is talking about 1.3.0-final, the beta has been released. It
> would be great if you could test it. It's available for download from
> here: http://ftp.isc.org/isc/kea/1.3.0-beta/
>
We've tested it, and it (almost) worked.
Server is 10.1.1.11/24.
Why almost ? Because the following conf does not work: there are no
subnet section in the same server subnet:
---
"Dhcp4": {
"interfaces-config": {
"interfaces": [ "em0" ],
"dhcp-socket-type": "raw"
},
...
"shared-networks": [ {
"name": "shared-test",
"subnet4": [
{
"subnet": "10.1.2.0/24",
"id": 1012,
"option-data": [
{ "name": "routers", "data": "10.1.2.254" },
{ "name": "broadcast-address", "data": "10.1.2.255" }
],
"reservations": [
{ "hw-address": "mac1", "ip-address": "10.1.2.22" }
]
},
{
"subnet": "10.1.3.0/24",
"id": 1013,
"option-data": [
{ "name": "routers", "data": "10.1.3.254" },
{ "name": "broadcast-address", "data": "10.1.3.255" }
],
"reservations": [
{ "hw-address": "mac2", "ip-address": "10.1.3.33" }
]
]
} ],
...
},
---
BUT, if we add the following section:
---
{
"subnet": "10.1.1.0/24",
"id": 1011,
"option-data": [
{ "name": "routers", "data": "10.1.1.254" },
{ "name": "broadcast-address", "data": "10.1.1.255" }
],
"reservations": [
{ "hw-address": "fake mac", "ip-address": "10.1.1.11" }
]
},
---
then the server works and give the two ip (10.1.2.22 and 10.1.3.33)
correctly, also if we don't use subnet 10.1.1.0/24 for dynamic dhcp.
Bye.
Marco Broglia.
--
% Marco Broglia
% via per Vimodrone 9, 20093 Cologno Monzese (MI)
% email: marco.broglia at mutex.it
More information about the Kea-users
mailing list