Specifying gateways for DHCP clients

DHCP clients send packets destined for other networks to a gateway. The DHCP server can assign the gateway address to the DHCP clients.

You can specify gateway addresses in each address pool on the DHCP server. A maximum of 64 gateways can be specified in DHCP address pool view or secondary subnet view.

The DHCP server assigns gateway addresses to clients on a secondary subnet in the following ways:

To configure gateways in the DHCP address pool:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a DHCP address pool and enter its view.

dhcp server ip-pool pool-name

By default, no DHCP address pool exists.

3. Specify gateways.

gateway-list ip-address&<1-64>

By default, no gateway is specified.

4. (Optional.) Enter secondary subnet view

network network-address [ mask-length | mask mask ] secondary

N/A

5. (Optional.) Specify gateways.

gateway-list ip-address&<1-64>

By default, no gateway is specified.