DGS-6604
ip address-list
CLI Reference Guide
229
ip address-list
Use this command to specify the IP address range in a DHCP address pool and
one of which is allowed to be bound with a DHCP client. Use the no form of this
command to remove the range of IP addresses from the DHCP address pool.
ip address-list
IP-ADDRESS
[,|-]
no ip address-list
IP-ADDRESS
[,|-]
Default
No IP addresses exist in any DHCP pool.
Command Mode
DHCP pool configuration
Usage Guideline
This command is used to define the IP address list for a DHCP pool. Reasonable
IP addresses should be carefully defined for the pool. For example, use the same
network ID or same subnet for the all IP addresses.
Specify a host by specifying the IP address explicitly or specify a range of IP
addresses using a hyphen between the start IP address and end IP address.
Both the host and the range of IP addresses can be mixed together. Verify and
confirm that the IP addresses chosen are part of the same network.
Example
This example shows how to configure the IP address range for pool1 in the IP
address range of 10.1.1.1~10.1.1.255 and exclude the address 10.1.1.200 from
the pool.
Verify the address pool is added with the
show ip dhcp pool
command.
Syntax Description
IP-ADDRESS
[,|-]
The IP address list to be added into DHCP address pool.
Switch# configure terminal
Switch(config)# ip dhcp pool pool1
Switch(config-dhcp)# ip address-list 10.1.1.1-10.1.1.255
Switch(config-dhcp)# no ip address-list 10.1.1.200
Switch(config-dhcp)#