[Kea-users] Multiple Subnets - 1 NIC

Klaus Steden klausfiend at gmail.com
Mon Aug 15 22:07:56 UTC 2016


Hi Maxime,

Have you defined the subnet as one that's owned by Kea in the config file?
Assuming you have different routers, netmasks, etc., you would have to
define a separate scope for both networks.

Presumably you've got DHCP forwarding enabled on your switches as well so
that DHCP requests get relayed through to your Kea server, which is the
only way you can have any DHCP server provide leases for a network it is
not directly connected to.

If it's useful, here's a sample from my config that serves three different
subnets via a single NIC on a different network:

-- cut --
  "subnet4": [
    {
        "subnet": "10.129.129.0/29",
        "id": 1,
        "pools": [{ "pool": "10.129.129.2 - 10.129.129.6" }],
        "option-data": [{ "name": "routers", "data": "10.129.129.1" }]
    },
    {
        "subnet": "10.129.129.8/29",
        "id": 2,
        "pools": [{ "pool": "10.129.129.10 - 10.129.129.14" }],
        "option-data": [{ "name": "routers", "data": "10.129.129.9" }]
    },
    {
        "subnet": "10.0.194.0/28",
        "id": 3,
        "pools": [{ "pool": "10.0.194.2 - 10.0.194.14" }],
        "option-data": [{ "name": "routers", "data": "10.0.194.1" }]
    }
  ]
-- cut --

cheers,
Klaus



On Mon, Aug 15, 2016 at 5:08 AM, Maxime Lareo <max.lareo at gmail.com> wrote:

> Hi,
>
> I currently testing KEA with 2 servers for HA with a Mariadb Galera
> Cluster Backend and it works pretty well.
>
> It running like a charm with one subnet, but when it come managing
> multiple subnet, with only 1 NIC, it seems impossible to make it work. KEA
> just doesn't want to give an IP address that doesn't belong to its own
> subnet.
>
> I don't succeed to use ip relay or client classification properly to make
> it work.
>
> Do I missing something ?
>
> I just want to have VoIP devices on another subnet than the original
> subnet. All the devices (VoIP or not) are on the same VLAN and switch.
>
> To explain my actual configuration :
>
> I have a client classes testing the option 60 and it work, I can see in
> the log file, the expression evaluated to 1, but KEA doesn't choose the
> subnet with the client-class but the one who match its subnet (the one my
> server ip address belong to), which is after the VoIP subnet in the conf
> file.
>
> Someone know a way to make it works ?
>
> Thank you !
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20160815/6de9cc90/attachment.htm>


More information about the Kea-users mailing list