[Kea-users] Changing Option 1 subnet mask to "manual"

Owen Dunn osd1000 at cam.ac.uk
Thu Jan 11 10:09:14 UTC 2018


On Wed, 10 Jan 2018, Paiva, Gilson de wrote:

> We've been using Mikrotik RouterOS as a DHCP server for a while now and
> we're searching for alternatives since we want to expand our network... Kea
> would be perfect since we 100% can integrate our backend applications to
> feed data to it on its SQL tables and so on...
>
> As an ISP we want to keep on giving our GPON clients addresses belonging to
> a wider network but on /32 leases and so far we haven't been able to
> achieve this since Kea automatically calculates the lease subnet mask from
> the "parent" subnet and send it as option 1... We even thought of trying to
> hack its code to forcibly give only 255.255.255.255 option 1 value no
> matter which network length we are using but we gave up fearing we could
> break something else... and admittedly we lack knowledge on coding...
> Nothing related could be found in this list archives or documentation...
>
> Is there any way this could be achieved?

For this I created a custom kea plugin which adjusts the netmask to match 
what's configured as the netmask in the reservations database.

With no guarantees at all, https://git.maths.cam.ac.uk/osd1000/kea-hooks

Owen



More information about the Kea-users mailing list