]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2892] document PD hints
authorAndrei Pavel <andrei@isc.org>
Thu, 29 Jun 2023 12:42:28 +0000 (15:42 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 29 Jun 2023 12:42:28 +0000 (15:42 +0300)
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst

index afdafb7536badd4e85bb3f7c3ee7f352a38e089b..34fcfcb8127dd8f5eb0ca83e8864c2b9375a919b 100644 (file)
@@ -8040,7 +8040,9 @@ Address Allocation Strategies in DHCPv4
 
 A DHCP server follows a complicated algorithm to select an IPv4 address for a client.
 It prefers assigning specific addresses requested by the client and the addresses for
-which the client has reservations. If the client requests no particular address and
+which the client has reservations.
+
+If the client requests no particular address and
 has no reservations, or other clients are already using any requested addresses, the server must
 find another available address within the configured pools. A server function called
 an "allocator" is responsible in Kea for finding an available address in such a case.
index 86a5dfc0bb9bd1cd7ea33bae6fc2e77f5e266433..d3529c489052dc051997bbff26a38a83fe9da01c 100644 (file)
@@ -7686,12 +7686,23 @@ MiNID.
 
 .. _dhcp6_allocation_strategies:
 
-Address Allocation Strategies in DHCPv6
-=======================================
+Allocation Strategies in DHCPv6
+===============================
 
 A DHCP server follows a complicated algorithm to select a DHCPv6 lease for a client.
 It prefers assigning specific addresses or delegated prefixes requested by the client
-and the ones for which the client has reservations. If the client requests no particular
+and the ones for which the client has reservations.
+
+When the client requests a specific delegated prefix, there are a few steps that
+:iscman:`kea-dhcp6` goes through to try to satisfy the request, in the following
+order:
+
+1. It searches for a lease that matches the requested prefix and prefix length.
+2. It searches for a lease that matches the prefix length.
+3. It searches for a lease with a larger address space (smaller prefix length).
+4. It searches for a lease with a smaller address space (larger prefix length).
+
+If the client requests no particular
 lease and has no reservations, or other clients are already using any requested leases, the server must
 find another available lease within the configured pools. A server function called
 an "allocator" is responsible in Kea for finding an available lease in such a case.