Re: [Kea-users] Subnet + mysql backend
Klaus, thanks a lot for the replied. You are 100% correct. This is starting to sound like a lot of crazy work. Any of the dev team at kea knows when we will have this function in the database? Carlos From: Klaus Steden Sent: Friday, April 12, 2019 10:00 PM To: Carlos Carluccio Cc: Kea-users@lists.isc.org Subject: Re: [Kea-users] Subnet + mysql backend *** THIS EMAIL ORIGINATED OUTSIDE THE ORGANIZATION *** 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., checksum("VLAN 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) & 0x which forces the results to be a positive number. HTH, Klaus On Fri, Apr 5, 2019 at 6:20 AM Carlos Carluccio mailto:carlos.carluc...@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@lists.isc.org<mailto:Kea-users@lists.isc.org> https://lists.isc.org/mailman/listinfo/kea-users ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
Re: [Kea-users] Subnet + mysql backend
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., checksum("VLAN 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) & 0x which forces the results to be a positive number. HTH, Klaus On Fri, Apr 5, 2019 at 6:20 AM Carlos Carluccio < carlos.carluc...@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@lists.isc.org > https://lists.isc.org/mailman/listinfo/kea-users > ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
[Kea-users] Subnet + mysql backend
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@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users