<div dir="ltr">Hello,<div><br></div><div>I found similar thread - <a href="http://permalink.gmane.org/gmane.network.dhcp.isc.kea.user/53">http://permalink.gmane.org/gmane.network.dhcp.isc.kea.user/53</a></div><div>Looks like 'reservations' or 'pool' is mandatory in current Kea version (1.1), even if reservations set via the MySQL.</div><div><br></div><div>As a work-around I put 'false' reservation in the config like this:</div><div><br></div><div><div><br></div><div> "subnet4": [</div><div> {</div><div> "subnet": "<a href="http://10.5.204.0/24">10.5.204.0/24</a>",</div><div> "reservations": [</div><div> {</div><div> "hw-address": "00:11:22:33:44:55",</div><div> "ip-address": "1.2.3.4"</div><div> },</div><div> ]</div><div> }</div><div> ]</div><div>},</div><div><br></div><div>MySQL reservations & PXE still works, I added them via:</div><div><br></div><div><div>START TRANSACTION;</div><div>SET @ipv4_reservation='10.10.10.76';</div><div>SET @hostname = 'hostname.freebsd';</div><div>SET @identifier_type='hw-address';</div><div>SET @identifier_value='d4:ae:52:a7:ec:11';</div><div>SET @dhcp4_subnet_id=1;</div><div>SET @next_server='10.10.10.254';</div><div>SET @server_hostname='serverhostname.freebsd';</div><div>SET @boot_file_name='gpxelinux.0';</div><div><br></div><div>INSERT INTO hosts (dhcp_identifier,</div><div> dhcp_identifier_type,</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span> dhcp4_subnet_id,</div><div> ipv4_address,</div><div> hostname,</div><div> dhcp4_next_server,</div><div> dhcp4_server_hostname,</div><div> dhcp4_boot_file_name)</div><div>VALUES (UNHEX(REPLACE(@identifier_value, ':', '')),</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>(SELECT type FROM host_identifier_type WHERE name=@identifier_type),</div><div> @dhcp4_subnet_id,</div><div> INET_ATON(@ipv4_reservation),</div><div> @hostname,</div><div> INET_ATON(@next_server),</div><div> @server_hostname,</div><div> @boot_file_name);</div><div><br></div><div>COMMIT;</div></div><div><br></div><div><br></div><div><br></div><div>Also I with incorrect work when DNS options get added (<a href="http://kea.isc.org/wiki/HostReservationsHowTo">http://kea.isc.org/wiki/HostReservationsHowTo</a> example), but I will post results of this in the separate thread.</div></div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Stas</div></div>
<br><div class="gmail_quote">On Wed, Apr 19, 2017 at 12:09 PM, Stas Starikevich <span dir="ltr"><<a href="mailto:stas.starikevich@gmail.com" target="_blank">stas.starikevich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Francis,<div><br></div><div>Can you please provide more details about this with config examples?</div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_-4945247433219226685gmail_signature" data-smartmail="gmail_signature">Stas</div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Tue, Apr 18, 2017 at 12:13 AM, Francis Dupont <span dir="ltr"><<a href="mailto:fdupont@isc.org" target="_blank">fdupont@isc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Stas Starikevich writes:<br>
> Can someone suggest a way to serve only white-listed (with host reservation)<br>
> clients?<br>
> I.e. if client is not in the 'hosts' table then it shouldn't not get any leas<br>
> es (and boot from the HDD, but not from PXE).<br>
<br>
</span>=> did you try with no pool?<br>
<br>
Regards<br>
<br>
Francis Dupont <<a href="mailto:fdupont@isc.org" target="_blank">fdupont@isc.org</a>><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>