dhcp server ip-range
Function
The dhcp server ip-range command sets the range of IP addresses that a DHCP server pre-allocates to DHCP clients.
The undo dhcp server ip-range command deletes the configured IP address range.
By default, the range of IP addresses that a DHCP server pre-allocates to DHCP clients is not configured.
Parameters
Parameter | Description | Value |
---|---|---|
start-ip-address | Specifies the start IP address. | The value is in decimal dotted notation. |
end-ip-address | Specifies the end IP address. | The value is in decimal dotted notation. |
Usage Guidelines
Prerequisites
Usage Scenario
You can run the dhcp server ip-range start-ip-address end-ip-address command to change the range of IP addresses in an address pool based on actual usage of IP addresses.
Prerequisites
The DHCP server function of the interface address pool has been enabled on interfaces using the dhcp select interface command.
Example
# Enable a DHCP server on a VLANIF100 to pre-allocate IP addresses 192.168.1.2 to 192.168.1.100 to DHCP clients.
<AC6605> system-view [AC6605] dhcp enable [AC6605] interface vlanif 100 [AC6605-Vlanif100] ip address 192.168.1.1 24 [AC6605-Vlanif100] dhcp select interface [AC6605-Vlanif100] dhcp server ip-range 192.168.1.2 192.168.1.100