[Kea-users] Subnet mask selection

kea at jack.fr.eu.org kea at jack.fr.eu.org
Tue May 23 11:59:38 UTC 2017


Hi,

tl;dr: can I set option 1 (subnet mask) on a per-host basis ?

I am using Kea dhcp4 1.1.0
I have the following setup:
- a single interface (eth0)
- clients are directly connected (no relay)
- two subnets (a /24, a /25), each defined with a specific subnet_id :
{'id': 1024, 'subnet': '10.0.0.0/24'} and {'id': 1025, 'subnet':
10.1.0.0/25'}
- a sql database which contains, for all trusted hosts, the allocated IP
address, the corresponding subnet_id, and an option 3 (routers)


Sadly, as-is, I cannot make it works
If a bind each subnet to the interface eth0, it works for the first
defined subnet, not for the other
Config sample:
{
    "id": 1024,
    "interface": "eth0",
    "subnet": "10.0.0.0/24"
},
{
    "id": 1025,
    "interface": "eth0",
    "subnet": "10.1.0.0/25"
}

-> OK for hosts in 1024, "failed to advertise a lease" for hosts in 1025

If I remove the interface binding, same behavior:
-> OK for hosts in 1024, "failed to advertise a lease" for hosts in 1025

If I put all hosts in 1024, and add an option 1 (subnet mask) in the
configuration, or inside the sql database : all host gets a /24 (aka,
option 1 is ignored)

Is there a way to solve my case ?

Best regards,



More information about the Kea-users mailing list