<div dir="ltr"><div dir="ltr"><br><div>Hi Carlos,</div><div><br></div><div>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.</div><div><br></div><div>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., <font face="monospace, monospace">checksum("VLAN 100 rack 10")</font> generates some unique number, while <font face="monospace, monospace">checksum("VLAN 50 rack 10") </font>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.</div><div><br></div><div>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:</div><div><br></div><div><font face="monospace, monospace">return binascii.crc32(name) & 0xffffffff</font><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">which forces the results to be a positive number.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">HTH,</font></div><div><font face="arial, helvetica, sans-serif">Klaus</font></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 6:20 AM Carlos Carluccio <<a href="mailto:carlos.carluccio@totalserversolutions.com">carlos.carluccio@totalserversolutions.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-508084854788336607WordSection1">
<p class="MsoNormal">Guys, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Carlos<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>