| 1 |
# DHCPv4 two subnets in shared-network declaration config |
| 2 |
|
| 3 |
# shared-network declaration |
| 4 |
shared-network "foobar" { |
| 5 |
# interface |
| 6 |
interface "en0"; |
| 7 |
# option |
| 8 |
option domain-search "example.com", "example.org"; |
| 9 |
# parameter |
| 10 |
default-lease-time 1800; |
| 11 |
# subnet declaration |
| 12 |
subnet 10.5.5.0 netmask 255.255.255.224 { |
| 13 |
# redefined parameter |
| 14 |
default-lease-time 3600; |
| 15 |
# another option |
| 16 |
option ip-forwarding true; |
| 17 |
# pool inside the subnet |
| 18 |
pool { |
| 19 |
range 10.5.5.5 10.5.5.10; |
| 20 |
} |
| 21 |
} |
| 22 |
# second subnet declaration |
| 23 |
subnet 10.10.10.0 netmask 255.255.255.224 { |
| 24 |
# pool inside the subnet |
| 25 |
pool { |
| 26 |
range 10.10.10.5 10.10.10.10; |
| 27 |
} |
| 28 |
} |
| 29 |
} |