From: Tomek Mrugalski Date: Mon, 28 Jul 2014 03:07:34 +0000 (-0400) Subject: [3464] DHCPv4 chapter in ARM updated. X-Git-Tag: trac3482_base~53^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b072144c2ada634dba2cf140201c7bb10511acea;p=thirdparty%2Fkea.git [3464] DHCPv4 chapter in ARM updated. --- diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index 2bad5ef4f9..89ada06ba1 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -90,7 +90,9 @@ "subnet4": [ { "subnet": "192.0.2.0/24", - "pool": [ "192.0.2.1 - 192.0.2.200" ] + "pools": [ + { "pool": "192.0.2.1 - 192.0.2.200" } + ] } ] @@ -176,8 +178,8 @@ so it starts and ends with square brackets. Each subnet definition in the list has several attributes associated with it, so is a structure and is opened and closed with braces. At minimum, a subnet definition has to have at least two parameters: subnet (that -defines the whole subnet) and pool (which is a list of -dynamically allocated pools that are governed by the DHCP server. +defines the whole subnet) and pools (which is a list of +dynamically allocated pools that are governed by the DHCP server). The example contains a single subnet. Had more than one been defined, additional elements @@ -187,15 +189,15 @@ syntax would be used: "subnet4": [ { - "pool": [ "192.0.2.1 - 192.0.2.200" ], + "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ], "subnet": "192.0.2.0/24" }, { - "pool": [ "192.0.3.100 - 192.0.3.200" ], + "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ], "subnet": "192.0.3.0/24" }, { - "pool": [ "192.0.4.1 - 192.0.4.254" ], + "pool": [ { "pool": "192.0.4.1 - 192.0.4.254" } ], "subnet": "192.0.4.0/24" } ] @@ -385,12 +387,16 @@ temporarily override a list of interface names and listen on all interfaces. "Dhcp4": { "subnet4": [ "subnet": "192.0.2.0/24", - "pool": [ "192.0.2.10 - 192.0.2.20" ], + "pools": [ + { + "pool": "192.0.2.10 - 192.0.2.20" + } + ], ... ] } - Note that subnet is defined as a simple string, but the pool parameter is + Note that subnet is defined as a simple string, but the 'pools' parameter is actually a list of pools: for this reason, the pool definition is enclosed in square brackets, even though only one range of addresses is specified in this example. @@ -404,7 +410,10 @@ temporarily override a list of interface names and listen on all interfaces. "Dhcp4": { "subnet4": [ - "pool": [ "192.0.2.10-192.0.2.20", "192.0.2.64/26" ], + "pools": [ + { "pool": "192.0.2.10-192.0.2.20" }, + { "pool": "192.0.2.64/26" } + ], ... ], ... @@ -421,17 +430,17 @@ temporarily override a list of interface names and listen on all interfaces. "subnet4": [ { "subnet": "192.0.2.0/24", - "pool": [ "192.0.2.1 - 192.0.2.200" ], + "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ], ... }, { "subnet": "192.0.3.0/24", - "pool": [ "192.0.3.100 - 192.0.3.200" ], + "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ], ... }, { "subnet": "192.0.4.0/24", - "pool": [ "192.0.4.1 - 192.0.4.254" ], + "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ], ... } ] @@ -1188,7 +1197,7 @@ temporarily override a list of interface names and listen on all interfaces. "subnet4": [ { subnet: "192.0.2.0/24", - "pool": [ "192.0.2.10 - 192.0.2.20" ], + "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ], "client-class": "VENDOR_CLASS_docsis3.0" } ], @@ -1696,7 +1705,7 @@ temporarily override a list of interface names and listen on all interfaces. "subnet4: [ { "subnet": "192.0.2.0/24", - "pool": [ "192.0.2.10 - 192.0.2.20" ], + "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ], "relay": { "ip-address": "10.0.0.1" }, @@ -1732,7 +1741,7 @@ temporarily override a list of interface names and listen on all interfaces. "subnet4: [ { "subnet": "10.1.1.0/24", - "pool": [ "10.1.1.2 - 10.1.1.20" ], + "pools": [ { "pool": "10.1.1.2 - 10.1.1.20" } ], "client-class" "docsis3.0", "relay": { "ip-address": "10.1.1.1" @@ -1740,7 +1749,7 @@ temporarily override a list of interface names and listen on all interfaces. }, { "subnet": "192.0.2.0/24", - "pool": [ "192.0.2.10 - 192.0.2.20" ], + "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ], "relay": { "ip-address": "10.1.1.1" }