< Home

gateway-list

Function

The gateway-list command configures an egress gateway address for a DHCP client.

The undo gateway-list command deletes a configured egress gateway address.

By default, no egress gateway address is configured.

Format

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

undo gateway-list { ip-address | all }

Parameters

Parameter

Description

Value

ip-address

Specifies the IP address of an egress gateway.

The value is in dotted decimal notation.

all

Deletes all gateway addresses.

-

Views

IP address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command applies to DHCP servers. If a DHCP server and its client are on different network segments, you can run the gateway-list command to specify an egress gateway address. In this way, the DHCP server and client can communicate with each other. Then the DHCP server can assign both an IP address and the specified egress gateway address to the client. You can configure multiple gateways in a global address pool to load balance traffic and improve network reliability.

Precautions

  • The IP addresses specified in the excluded-ip-address command cannot be configured as a gateway address.
  • After an IP address is configured as a gateway address, the device adds the IP address to the list of IP addresses that cannot be automatically allocated, removing the need to run the excluded-ip-address command.
  • In the IP address pool view, a maximum of eight egress gateway addresses can be configured on the device. These gateway addresses cannot be subnet broadcast addresses.

Example

# In the IP address pool view, set the egress gateway address for the DHCP client to 10.1.1.1.

<sysname> system-view
[sysname] ip pool global1
[sysname-ip-pool-global1] gateway-list 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >