From: Sebastian Schrader Date: Fri, 19 Oct 2018 15:30:26 +0000 (+0200) Subject: [5184] Add authoritative flag to sample configs X-Git-Tag: 259-libyang-adapt-authoritative_base~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c39d33a6ffd2e10811d72b82c096a689e6f291fd;p=thirdparty%2Fkea.git [5184] Add authoritative flag to sample configs --- diff --git a/doc/examples/kea4/advanced.json b/doc/examples/kea4/advanced.json index 94b2bfc8e5..cee0f43273 100644 --- a/doc/examples/kea4/advanced.json +++ b/doc/examples/kea4/advanced.json @@ -115,6 +115,12 @@ // 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 @@ -157,6 +163,14 @@ "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 } ] }, diff --git a/doc/examples/kea4/several-subnets.json b/doc/examples/kea4/several-subnets.json index cb45a5bc3f..a7dfa62dae 100644 --- a/doc/examples/kea4/several-subnets.json +++ b/doc/examples/kea4/several-subnets.json @@ -40,6 +40,12 @@ // 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": [ diff --git a/doc/examples/kea4/shared-network.json b/doc/examples/kea4/shared-network.json index 14eceb8db9..397869fd6e 100644 --- a/doc/examples/kea4/shared-network.json +++ b/doc/examples/kea4/shared-network.json @@ -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