]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2968] added interface to subnet selection in v4 ARM
authorRazvan Becheriu <razvan@isc.org>
Thu, 17 Aug 2023 05:10:01 +0000 (08:10 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 17 Aug 2023 05:10:01 +0000 (08:10 +0300)
doc/sphinx/arm/dhcp4-srv.rst

index 6c4d99c3b6f18bfe0817b06bc83b319a240f4d5b..293f82d41157085cccb4161cdb6b492c29726f23 100644 (file)
@@ -6631,6 +6631,29 @@ the configuration for the interface on which the message has been
 received and, if the server configuration does not match any configured
 subnet, the message is discarded.
 
+An optional interface parameter is available within a subnet definition to
+designate that a given subnet is local, i.e. reachable directly over the
+specified interface. For example, a server that is intended to serve a local
+subnet over eth0 may be configured as follows:
+
+::
+
+   "Dhcp4": {
+       "subnet4": [
+           {
+               "id": 1,
+               "subnet": "192.0.2.0/24",
+               "pools": [
+                    {
+                        "pool": "192.0.2.100 - 192.0.2.199"
+                    }
+                ],
+               "interface": "eth0"
+           }
+       ],
+       ...
+   }
+
 Assuming that the server's interface is configured with the IPv4 address
 192.0.2.3, the server only processes messages received through this
 interface from a directly connected client if there is a subnet