<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Francis,<br>
<br>
I understand ... <br>
- The "best way" for multiple subnets and apply balance between
them is to use shared-networks with their subnets and their pools.<br>
- There "no priority" parameter to select subnet "B" from a
shared-network before subnet "A". The "priority" to select or
pickup a subnet inside a shared-network is which subnet was
defined first in config file. So if I defined subnet "B" before
subnet "A", kea is going to offer IP from subnet "B" first and
when it hasn't more leases is going to offer IPs from subnet "A"<br>
</p>
<p>This is correct?</p>
<p>Thanks.<br>
Juan<br>
</p>
<div class="moz-signature">
<table width="351" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="text-align:left;padding-bottom:10px"><br>
</td>
</tr>
<tr>
<td style="border-top:solid #000000 4px" height="14"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;
text-align:left;color:#000000;font-size:12px;font-family:Futura,
'Century Gothic', CenturyGothic, sans-serif;;
text-align:left"><br>
<br>
<br>
<br>
<table cellpadding="0" border="0">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div class="moz-cite-prefix">El 21/1/19 a las 20:57, Francis Dupont
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:20190121235750.42804216C1C@bikeshed.isc.org">
<pre class="moz-quote-pre" wrap="">In a shared network the subnet selection in fact select the shared network.
When a host is looked up all the subnets of the shared network are scanned
starting from the selected one if there are less subnets than allowed
identifier types.
Pools are a bit different: they are scanned starting by the last used so
the selected subnet matters only once.
There is the code a comment explaining this mechanism:
// Need to check if the subnet belongs to a shared network. If so,
// we might be able to find a better subnet for lease allocation,
// for which it is more likely that there are some leases available.
// If we stick to the selected subnet, we may end up walking over
// the entire subnet (or more subnets) to discover that the pools
// have been exhausted. Using a subnet from which a lease was
// assigned most recently is an optimization which increases
// the likelyhood of starting from the subnet which pools are not
// exhausted.
Regards</pre>
</blockquote>
</body>
</html>