]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3628] Subnet selectors in default conf
authorMarcin Siodelski <marcin@isc.org>
Wed, 18 Jun 2025 11:25:13 +0000 (13:25 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 18 Jun 2025 11:25:13 +0000 (13:25 +0200)
src/bin/keactrl/kea-dhcp4.conf.pre
src/bin/keactrl/kea-dhcp6.conf.pre

index 571a86e33207ccb56deeab5f08688e046e21d379..ba484e4a96d49793eb88a47a42b3838577a146ea 100644 (file)
             // host reservations defined for them.
             "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ],
 
+            // This is one of the subnet selectors. Uncomment the "interface"
+            // parameter and specify appropriate interface name if the DHCPv4
+            // server will receive requests from local clients (connected to the
+            // same subnet as the server). This subnet will be selected for the
+            // requests received by the server over the specified interface.
+            // This rule applies to the DORA exchanges and rebinding clients.
+            // Renewing clients unicast their messages and the renewed addresses
+            // are used by the server to determine the subnet they belong to.
+            // When this parameter is used, the "relay" parameter is typically
+            // unused.
+            // "interface": "eth0",
+
+            // This is another subnet selector. Uncomment the "relay" parameter
+            // and specify a list of the relay addresses. The server will select
+            // this subnet for lease assignments when it receives queries over one
+            // of these relays. When this parameter is used, the "interface" parameter
+            // is typically unused.
+            // "relay": {
+            //    "ip-addresses": [ "10.0.0.1" ]
+            // },
+
             // These are options that are subnet specific. In most cases,
             // you need to define at least routers option, as without this
             // option your clients will not be able to reach their default
index 3e9b9f1124a9626696c967a33cf860348aeadc72..27b600e926c0cc1bd7d809e5db32de2ef7c1646e 100644 (file)
                     // "excluded-prefix-len": 72
                 }
             ],
+
+            // This is one of the subnet selectors. Uncomment the "interface"
+            // parameter and specify appropriate interface name if the DHCPv6
+            // server will receive requests from local clients (connected to the
+            // same subnet as the server). The DHCPv6 server must be able to
+            // operate while only using link-local addresses.
+            // When this parameter is used, the "relay" parameter is typically unused.
+            // "interface": "eth0",
+
+            // This is another subnet selector. Uncomment the "relay" parameter
+            // and specify a list of the relay addresses. The server will select
+            // this subnet for lease assignments when it receives queries over one
+            // of these relays. When this parameter is used, the "interface" parameter
+            // is typically unused.
+            // "relay": {
+            //    "ip-addresses": [ "2001:db8:2:34::1" ]
+            // },
+
             "option-data": [
                 // You can specify additional options here that are subnet
                 // specific. Also, you can override global options here.