address-range
address-range first_range last_range [block]
Syntax Description
first_range |
Specifies the first address in range from which the IP addresses can be assigned to clients. |
last_range |
Specifies the last address in range until which the IP addresses can be assigned to clients. |
block |
Dynamically blocks one of the networks in the address pool. |
Command Default
None
Command Modes
Pool IPv4 configuration
Pool IPv6 configuration
Command History
Release | Modification |
---|---|
Release 4.2.0 |
This command was introduced. |
Release 4.3.0 |
Support for IPv6 was added. |
Release 6.2.1 |
Modified the command to include block option. |
Usage Guidelines
You should only specify the addresses that are assignable to clients in a particular subnet. The interface and broadcast addresses should not be included in the address-range configuration.
Use the pool ipv4 command to enter IPv4 pool configuration submode and pool ipv6 command to enter IPv6 pool configuration submode.
Multiple address-ranges are allowed within a pool.
Dynamic soft pool migration as well as static IP address subscriber management work only if the identity change feature is enabled using subscriber featurette identity-change command. DHCP validates the IP address with DAPS and accordingly rejects the RENEW request from the client, only if the block command is enabled. For more details, refer DHCP soft pool migration feature in Cisco ASR 9000 Series Aggregation Services Router Broadband Network Gateway Configuration Guide.
Task ID
Task ID | Operation |
---|---|
ip-services |
read, write |
Examples
This is an example of configuring the address-range command for IPv4 in the Global Configuration mode:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# pool vrf vrf1 ipv4 pool2
RP/0/RSP0/CPU0:router(config-pool-ipv4)# address-range 11.11.11.11 14.14.14.14
This is an example of configuring the address-range command for IPv6 in the Global Configuration mode:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# pool vrf vrf1 ipv6 pool3
RP/0/RSP0/CPU0:router(config-pool-ipv6)# address-range 2001::1 2001::100
This example shows how to enable dynamic soft pool migration by blocking one of the networks in the address pool:
RP/0/RSP0/CPU0:router#config
RP/0/RSP0/CPU0:router#pool vrf default ipv4 dhcp_192
RP/0/RSP0/CPU0:router#address-range 192.0.2.1 192.0.2.7 block
RP/0/RSP0/CPU0:router#address-range 192.0.2.11 192.0.2.20