[Kea-users] Subnet + mysql backend
klausfiend at gmail.com
Sat Apr 13 00:59:47 UTC 2019
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:
> 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?
> Kea-users mailing list
> Kea-users at lists.isc.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kea-users