From: Francis Dupont Date: Sun, 30 Jul 2017 14:41:59 +0000 (+0200) Subject: [5241] Explained always-true action X-Git-Tag: trac5124a_base~23^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6673034256dfd0b6fec6f4ce7ed5a778363cdd90;p=thirdparty%2Fkea.git [5241] Explained always-true action --- diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index e8a58172cc..00187d8557 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -1007,6 +1007,39 @@ temporarily override a list of interface names and listen on all interfaces. ] } + The effect is the same than adding the option code in the + Parameter Request List option (or its equivalent for vendor + options) so in: + +"Dhcp4": { + "option-data": [ + { + "name": "domain-name-servers", + "data": "192.0.2.1, 192.0.2.2", + "always-send": true + }, + ... + ], + "subnet4": [ + { + "subnet": "192.0.3.0/24", + "option-data": [ + { + "name": "domain-name-servers", + "data": "192.0.3.1, 192.0.3.2" + }, + ... + ], + ... + }, + ... + ], + ... +} + + The Domain Name Servers option is always added to responses + (the always-send is "sticky") but the value is the subnet one + when the client is localized in the subnet. The name parameter specifies the option name. For a diff --git a/doc/guide/dhcp6-srv.xml b/doc/guide/dhcp6-srv.xml index e26f88d348..ebe9441295 100644 --- a/doc/guide/dhcp6-srv.xml +++ b/doc/guide/dhcp6-srv.xml @@ -1035,6 +1035,38 @@ temporarily override a list of interface names and listen on all interfaces. ] } + The effect is the same than adding the option code in the + Option Request Option (or its equivalent for vendor options) so in: + +"Dhcp6": { + "option-data": [ + { + "name": "dns-servers", + "data": "2001:db8::cafe, 2001:db8::babe", + "always-send": true + }, + ... + ], + "subnet6": [ + { + "subnet": "2001:db8:1::/64", + "option-data": [ + { + "name": "dns-servers", + "data": "2001:db8:1::cafe, 2001:db8:1::babe" + }, + ... + ], + ... + }, + ... + ], + ... +} + + The DNS Servers option is always added to responses + (the always-send is "sticky") but the value is the subnet one + when the client is localized in the subnet.