"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" }
+ ]
}
]
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: <command>subnet</command> (that
-defines the whole subnet) and <command>pool</command> (which is a list of
-dynamically allocated pools that are governed by the DHCP server.</para>
+defines the whole subnet) and <command>pools</command> (which is a list of
+dynamically allocated pools that are governed by the DHCP server).</para>
<para>The example contains a single subnet. Had more than one been defined,
additional elements
<screen>
"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"
}
]
"Dhcp4": {
<userinput>"subnet4": [
"subnet": "192.0.2.0/24",
- "pool": [ "192.0.2.10 - 192.0.2.20" ]</userinput>,
+ "pools": [
+ {
+ "pool": "192.0.2.10 - 192.0.2.20"
+ }
+ ]</userinput>,
...
]
}</screen>
- 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.</para>
<screen>
"Dhcp4": {
"subnet4": [
- <userinput>"pool": [ "192.0.2.10-192.0.2.20", "192.0.2.64/26" ]</userinput>,
+ <userinput>"pools": [
+ { "pool": "192.0.2.10-192.0.2.20" },
+ { "pool": "192.0.2.64/26" }
+ ]</userinput>,
...
],
...
"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" } ],
...
}
]
"subnet4": [
{
<userinput>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"</userinput>
}
],
"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" } ],
<userinput>"relay": {
"ip-address": "10.0.0.1"
}</userinput>,
"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" } ],
<userinput>"client-class" "docsis3.0",
"relay": {
"ip-address": "10.1.1.1"
},
{
"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" } ],
<userinput>"relay": {
"ip-address": "10.1.1.1"
}</userinput>