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 Francis Dupont <fdup...@isc.org> _______________________________________________ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users