63
[Sysname] dhcp server ip-pool 0
[Sysname-dhcp-pool-0] forbidden-ip 192.168.1.3 192.168.1.10
Related commands
dhcp server forbidden-ip
display dhcp server pool
gateway-list
Use gateway-list to specify gateway addresses in a DHCP address pool or a DHCP secondary
subnet.
Use undo gateway-list to remove the specified gateway addresses from a DHCP address pool or a
DHCP secondary subnet.
Syntax
gateway-list ip-address&<1-64>
undo gateway-list [ ip-address&<1-64> ]
Default
No gateway address is configured in a DHCP address pool or a DHCP secondary subnet.
Views
DHCP address pool view
DHCP secondary subnet view
Predefined user roles
network-admin
Parameters
ip-address&<1-64>: Specifies a space-separated list of up to 64 gateway addresses. Gateway
addresses must reside on the same subnet as the assignable IP addresses.
Usage guidelines
The DHCP server assigns gateway addresses to clients on a secondary subnet in the following
ways:
• If gateways are specified in both address pool view and secondary subnet view, DHCP assigns
those specified in the secondary subnet view.
• If gateways are specified in address pool view but not in secondary subnet view, DHCP assigns
those specified in address pool view.
If you do not specify any parameters, the undo gateway-list command deletes all gateway
addresses.
Examples
# Specify gateway address 10.1.1.1 in DHCP address pool 0.
<Sysname> system-view
[Sysname] dhcp server ip-pool 0
[Sysname-dhcp-pool-0] gateway-list 10.1.1.1
Related commands
display dhcp server pool