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> [ export-route ]
undo gateway-list [ ip-address&<1-64> ] [ export-route ]
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
mdc-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.
export-route: Binds the gateways to the device's MAC address in the address management module. The ARP module will use the entries to reply to ARP requests from the DHCP clients. If you do not specify this keyword, the gateways will not be bound to the device's MAC address.
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