| 1 |
{ |
| 2 |
# DHCPv4 pool with 2 ranges config |
| 3 |
# subnet declaration |
| 4 |
"Dhcp4": { |
| 5 |
"subnet4": [ |
| 6 |
{ |
| 7 |
"id": 1, |
| 8 |
"subnet": "10.5.5.0/27", |
| 9 |
/// default-valid-lifetime moved from an internal pool scope |
| 10 |
"valid-lifetime": 1800, |
| 11 |
"pools": [ |
| 12 |
# pool declaration |
| 13 |
{ |
| 14 |
"option-data": [ |
| 15 |
{ |
| 16 |
"space": "dhcp4", |
| 17 |
"name": "domain-search", |
| 18 |
"code": 119, |
| 19 |
// "original-data": "\"example.com\", \"example.org\"", |
| 20 |
"data": "example.com, example.org" |
| 21 |
} |
| 22 |
], |
| 23 |
"pool": "10.5.5.5 - 10.5.5.10" |
| 24 |
}, |
| 25 |
# pool declaration |
| 26 |
{ |
| 27 |
"option-data": [ |
| 28 |
{ |
| 29 |
"space": "dhcp4", |
| 30 |
"name": "domain-search", |
| 31 |
"code": 119, |
| 32 |
// "original-data": "\"example.com\", \"example.org\"", |
| 33 |
"data": "example.com, example.org" |
| 34 |
} |
| 35 |
], |
| 36 |
# add a second range |
| 37 |
"pool": "10.5.5.11 - 10.5.5.12" |
| 38 |
} |
| 39 |
], |
| 40 |
"interface": "en0" |
| 41 |
} |
| 42 |
], |
| 43 |
"interfaces-config": { |
| 44 |
"interfaces": [ |
| 45 |
"en0" |
| 46 |
] |
| 47 |
} |
| 48 |
} |
| 49 |
} |