]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5184] Add authoritative flag to sample configs
authorSebastian Schrader <sebastian.schrader@tu-dresden.de>
Fri, 19 Oct 2018 15:30:26 +0000 (17:30 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 7 Nov 2018 16:17:45 +0000 (23:17 +0700)
doc/examples/kea4/advanced.json
doc/examples/kea4/several-subnets.json
doc/examples/kea4/shared-network.json

index 94b2bfc8e5e55f3d30de34a8da55a6f2cd59ce94..cee0f43273a4e14ca880fdc00d7f864463d374a3 100644 (file)
     // can be overridden on a subnet level.
     "match-client-id": true,
 
+    // By default, Kea ignores requests by clients for unknown IP addresses,
+    // because other non-cooperating DHCP servers could reside on the same
+    // network (RFC 2131). This parameter is defined globally, but can be
+    // overriden on a subnet level
+    "authoritative": false,
+
     // The following list defines subnets. Each subnet consists of at
     // least subnet and pool entries. One extra feature that requires
     // some explanation is user-context. This is a structure that you can
             "relay": {
                 "ip-address": "192.168.1.1"
             }
+        },
+        {
+            // This particular subnet has the authoritative value changed.
+            // This casuses Kea to reply to requests with unknown IP addresses
+            // with a DHCPNAK message.
+            "pools": [ { "pool": "192.0.5.100 - 192.0.5.200" } ],
+            "subnet": "192.0.5.0/24",
+            "authoritative": true
         }
     ]
 },
index cb45a5bc3f145b53ab22a528b9877392894c63eb..a7dfa62dae4ee207dd0fac0fc3aaab89d530e9e0 100644 (file)
 // globally, but can be overridden on a subnet level.
   "match-client-id": true,
 
+  // By default, Kea ignores requests by clients for unknown IP addresses,
+  // because other non-cooperating DHCP servers could reside on the same
+  // network (RFC 2131). This parameter is defined globally, but can be
+  // overriden on a subnet level
+  "authoritative": false,
+
 // The following list defines subnets. Each subnet consists of at
 // least subnet and pool entries.
   "subnet4": [
index 14eceb8db9967fb2d9da057a5deb97f536264642..397869fd6ea77b63325671c36ddc94dfa418839c 100644 (file)
@@ -50,6 +50,7 @@
             "match-client-id": false,
             "option-data": [ ],
             "rebind-timer": 150,
+            "authoritative": true,
 
             // If all the traffic coming from that shared network is reachable
             // via relay and that relay always use the same IP address, you