<div dir="ltr">I tried setting just "reservations-out-of-pool": true, and it still wanted to assign from the first pool I have configured and not the reservations.<div><br></div><div>Below is a snippet of two of the subnets I have configured, there's a third, but it's nearly identical to the first one, just 192.168.12.X:</div><div><font face="monospace"> "subnet4": [<br> {<br> "id": 1,<br> "subnet": "<a href="http://192.168.10.0/24">192.168.10.0/24</a>",<br> "pools": [<br> {<br> "pool": "192.168.10.225 - 192.168.10.250"<br> }<br> ],<br> "option-data": [<br> {<br> "space": "dhcp4",<br> "name": "routers",<br> "code": 3,<br> "data": "192.168.10.1"<br> },<br> {<br> "space": "dhcp4",<br> "name": "domain-name-servers",<br> "code": 6,<br> "data": "192.168.10.3"<br> },<br> {<br> "space": "dhcp4",<br> "name": "domain-search",<br> "code": 119,<br> "data": "<a href="http://totusmel.com">totusmel.com</a>"<br> }<br> ],<br> #Reservations<br> <?include "/etc/kea/01-dhcp_network.10.json"?><br> },<br> {<br> "id": 2,<br> "subnet": "<a href="http://192.168.11.0/24">192.168.11.0/24</a>",<br> "pools": [<br> {<br> "pool": "192.168.11.100 - 192.168.11.150"<br> }<br> ],<br> "option-data": [<br> {<br> "space": "dhcp4",<br> "name": "routers",<br> "code": 3,<br> "data": "192.168.11.1"<br> },<br> {<br> "space": "dhcp4",<br> "name": "domain-name-servers",<br> "code": 6,<br> "data": "192.168.11.3"<br> },<br> {<br> "space": "dhcp4",<br> "name": "domain-search",<br> "code": 119,<br> "data": "<a href="http://totusmel.com">totusmel.com</a>"<br> },<br> {<br> "space": "dhcp4",<br> "code": 121,<br> "data": "<a href="http://192.168.100.0/24">192.168.100.0/24</a> - 192.168.11.1"<br> },<br> {<br> "space": "dhcp4",<br> "name": "ms-classless-static-routes",<br> "code": 249,<br> "data": "24, 192, 168, 100, 192, 168, 11, 1, 24, 192, 168, 10, 192, 168, 11, 1"<br> }<br> ],<br> #Reservations<br> <?include "/etc/kea/02-dhcp_user_systems.11.json"?><br> <?include "/etc/kea/03-dhcp_ent.11.json"?><br> <?include "/etc/kea/04-dhcp_servers.11.json"?><br> },<br></font></div><div><br></div><div>Here's a snippet from inside the first include:</div><div><font face="monospace"> "reservations": [<br> # Network Devices - WiFi, Switches, and Unifi Controller<br> {<br> "hostname": "u6-pro-cr",<br> "hw-address": "e4:38:83:92:87:05",<br> "ip-address": "192.168.10.25"<br> },<br></font></div><div><br></div><div>It eventually ends in a closed bracket without a comma [since it's technically the end of that section].</div><div><br></div><div>I'm not sure what more might need to be seen from my config. I can get more specific info if needed, I just wanted to illustrate that I moved around the reservation info into the subnets.</div><div><br></div><div>I enabled Kea DDNS and it works well with populating named zone info with the hostnames from the reservation files. </div><div><br></div><div>-Ubence</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 3, 2024 at 4:03 PM Sonic <<a href="mailto:sonicsmith@gmail.com">sonicsmith@gmail.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">On Sat, Aug 3, 2024 at 6:05 PM Ubence Quevedo <<a href="mailto:thatrat@gmail.com" target="_blank">thatrat@gmail.com</a>> wrote:<br>
> I moved things into reservations inside the subnets and set the following, which I think is the equivalent of "reservation-mode": "out-of-pool",:<br>
> "reservations-global": false,<br>
> "reservations-in-subnet": true,<br>
> "reservations-out-of-pool": true,<br>
<br>
This alone '"reservations-out-of-pool": true', is equivalent to<br>
setting all 3 of those as you show. And those are the replacement<br>
arguments for "reservation-mode".<br>
<br>
You might want to share more of your configuration (you would have<br>
been a lot further on a lot sooner had you done so earlier).<br>
One distressing part of Kea, at least for the version I'm running and<br>
using my limited knowledge (I started my first Kea install 3 weeks<br>
ago, so I'm still learning), is that it does not do DNS lookups to<br>
assign reserved addresses.<br>
With isc-dhcpd one could use:<br>
fixed-address a.b.c.d;<br>
or<br>
fixed-address <a href="http://hostname.example.com" rel="noreferrer" target="_blank">hostname.example.com</a>;<br>
either worked just fine.<br>
<br>
With Kea one needs:<br>
"ip-address": "a.b.c.d"<br>
as using the hostname<br>
"ip-address": "<a href="http://hostname.example.com" rel="noreferrer" target="_blank">hostname.example.com</a>"<br>
simply does not work.<br>
<br>
Really quite annoying as with isc-dhcpd one could simply update the<br>
static DNS ip assignment and the host would get the new address. Now<br>
one needs to update the IP address in the Kea reservation and then<br>
update the DNS server as well if DNS name resolution is desired.<br>
<br>
Chris<br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<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>