[Kea-users] Subnet + mysql backend

Klaus Steden klausfiend at gmail.com
Sat Apr 13 00:59:47 UTC 2019

Hi Carlos,

If I'm understanding your question correctly, yes, you have to keep all
this information in the configuration file, it doesn't live in the database.

We had a similar problem in our environment where we allocated separate
subnets to each rack, a problem we solved by generating synthetic scope IDs
using a checksum of a unique identifier for each DHCP scope, e.g.,
100 rack 10") generates some unique number, while checksum("VLAN 50 rack
10") generates some other unique number, and then that number is the scope
ID for that subnet. We throw this in one of the reserved DHCP options --
clients ignore it, but it allows us to differentiate.

In your case, if you're doing one scope per host, you could use a similar
approach on the MAC address and get unique IDs that way; in our case, we
used this Python snippet:

return binascii.crc32(name) & 0xffffffff

which forces the results to be a positive number.


On Fri, Apr 5, 2019 at 6:20 AM Carlos Carluccio <
carlos.carluccio at totalserversolutions.com> wrote:

> Guys,
> I am trying to provision dhcp to have each computer its own subnet/gw/etc
> . Do I need to add each one on the config file? There is no way I can have
> all this inside the mysql backend?
> Carlos
> _______________________________________________
> 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/20190412/f38303c4/attachment.htm>

More information about the Kea-users mailing list