<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks, that is enlightening. I have found the relevant section of the admin guide that talks about selecting subnets.
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">As a follow up, I'm having trouble following another section of the documentation regarding multiple pools that can be found here
<a href="https://ftp.isc.org/isc/kea/1.4.0/doc/kea-guide.html#dhcp6-address-config" class="OWAAutoLink" id="LPlnk805907" previewremoved="true">
https://ftp.isc.org/isc/kea/1.4.0/doc/kea-guide.html#dhcp6-address-config</a>.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">If I configure the following as per the documentation above, I get an error when kea starts that seems to imply that the pools must have the same prefix.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>"Dhcp6": {<br>
"subnet6": [<br>
{<br>
"subnet": "2001:db8:1::/64",<br>
"pools": [<br>
{ "pool": "2001:db8:1::1-2001:db8:1::ffff" },<br>
{ "pool": "2001:db8:1:05::/80" }<br>
],<br>
...<br>
}<br>
]<br>
}</div>
<div><br>
</div>
<div>The debug logs show:</div>
<div>
<div>2018-11-15 14:49:44.469 ERROR [kea-dhcp6.dhcp6/3739] DHCP6_PARSER_FAIL failed to create or run parser for configuration element subnet6: subnet configuration failed: a pool of type IA_NA, with the following address range: 2001:db8:1:5::-2001:db8:1:5:0:ffff:ffff:ffff
does not match the prefix of a subnet: 2001:db8:1::/64 to which it is being added (/var/run/kea.conf:33:6)<br>
2018-11-15 14:49:44.469 ERROR [kea-dhcp6.dhcp6/3739] DHCP6_CONFIG_LOAD_FAIL configuration error using file: /var/run/kea.conf, reason: subnet configuration failed: a pool of type IA_NA, with the following address range: 2001:db8:1:5::-2001:db8:1:5:0:ffff:ffff:ffff
does not match the prefix of a subnet: 2001:db8:1::/64 to which it is being added (/var/run/kea.conf:33:6)<br>
2018-11-15 14:49:44.469 ERROR [kea-dhcp6.dhcp6/3739] DHCP6_DYNAMIC_RECONFIGURATION_FAIL dynamic server reconfiguration failed with file: /var/run/kea.conf</div>
</div>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Francis Dupont <fdupont@isc.org><br>
<b>Sent:</b> Thursday, November 15, 2018 1:48:03 PM<br>
<b>To:</b> Brandon Cazander<br>
<b>Cc:</b> kea-users@lists.isc.org<br>
<b>Subject:</b> Re: [Kea-users] Configuring two separate subnets with PD pool and address pool</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Your problem is Kea does not have enough informations to select the<br>
second subnet so it always selects the first one. There are two ways<br>
to fix that:<br>
- find a way to select the right subnet<br>
- simply merge the two subnets inot one (you can have an address pool<br>
and a prefix pool in the same subnet in Kea).<br>
<br>
Regards<br>
<br>
Francis Dupont <fdupont@isc.org><br>
</div>
</span></font></div>
</body>
</html>