[Kea-users] Subnet/pool selection
Juan Settecase - Interlink S.R.L.
juan at interlink.com.ar
Wed Jan 23 13:23:41 UTC 2019
Hi Francis,
I understand ...
- The "best way" for multiple subnets and apply balance between them
is to use shared-networks with their subnets and their pools.
- 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"
This is correct?
Thanks.
Juan
El 21/1/19 a las 20:57, Francis Dupont escribió:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190123/f36bd38e/attachment.htm>
More information about the Kea-users
mailing list