Command Manual – Network Protocol
Quidway S8500 Series Routing Switches
Chapter 4 DHCP Configuration Commands
Huawei Technologies Proprietary
4-8
Example
# Set the IP address lease time of the DHCP address pool of VLAN interface 1 to
unlimited.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface vlan-interface 1
[Quidway-Vlan-interface1] dhcp server expired unlimited
4.2.6 dhcp server forbidden-ip
Syntax
dhcp server forbidden-ip low-ip-address
[
high-ip-address
]
undo dhcp server forbidden-ip low-ip-address
[
high-ip-address
]
View
System view
Parameter
low-ip-address
: Minimum IP address in the forbidden IP address range.
high-ip-address
: The highest IP address in the forbidden IP address range. Note that
the value of this argument must be larger than (or equal to) that of the
low-ip-address
argument. If you do not provide this argument, then the forbidden IP address range
contains only the IP address specified by the
low-ip-address
argument.
Description
Use the
dhcp server forbidden-ip
command to forbid a range of IP addresses to be
automatically assigned to DHCP clients.
Use the
undo dhcp server forbidden-ip
command to cancel the forbiddance.
All IP addresses in a DHCP address pool can be automatically assigned by default.
Related command:
dhcp server ip-pool
,
network
,
static-bind ip-address
, and
dhcp
server static-bind
.
Example
# Forbid the IP addresses from 10.110.1.1 to 10.110.1.63 to be automatically assigned.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] dhcp server forbidden-ip 10.110.1.1 10.110.1.63