Example: Configuring an Address-Assignment Pool
This topic shows a sample address-assignment pool configuration. The configuration includes the dhcp-attributes statement, indicating that the pool is used for DHCP clients.
- [edit access]
- address-assignment {
-
- pool isp_1 family inet {
- network 192.168.0.0/16;
-
- range southeast {
- low 192.168.102.2 high 192.168.102.254;
- }
-
- range northeast {
- low 192.168.119.2 high 192.168.119.250;
- }
- host svale6.boston.net {
- hardware-address 90:00:00:01:00:01;
- ip-address 192.168.44.12;
- }
-
- dhcp-attributes {
-
- option-match {
-
- option-82 {
- circuit-id fiber range northeast;
- }
-
- option-82 {
- circuit-id cable_net range southeast;
- }
- }
- boot-file boot.client;
- boot-server 192.168.200.100;
- grace-period 3600;
- maximum-lease-time 18000;
- netbios-node-type p-node;
- }
- router 192.168.44.44 192.168.44.45;
- }
- }
This example creates address-assignment pool isp-1, which contains two named address ranges, southeast and northeast. The address-assignment pool also contains a static binding for client host sval6.boston.net. If the option 82 circuit-id entry matches the string fiber, then DHCP assigns the client an address from the northeast range. If the option 82 circuit-id matches the string cable_net, DHCP assigns an address from the southeast range.