gateway

Function

The gateway command adds or modifies the gateway IP address and mask of an IP address pool.

By default, the gateway IP address and mask of an IP address pool is disabled.

This command is supported only on the NetEngine 8000 F1A.

Format

gateway ip-address { mask | mask-length }

Parameters

Parameter Description Value
ip-address

Specifies the IP address of the gateway.

The value is in the dotted decimal format.

mask

Specifies the IP address mask of the gateway.

The value is in the dotted decimal format.

mask-length

Specifies length of the address mask.

The value is an integer that ranges from 8 to 30.

Views

Bas IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ippool write

Usage Guidelines

Usage Scenario

Before allocating IP addresses in an address pool, you need to configure a gateway IP address in the address pool. In the address pool on the BAS, the configured gateway IP address is also used for advertising User Network Routes. The gateway IP address in the address pool on the BAS cannot be the IP address of any interface on the device. When the address pool is bound to a domain, you must unbind the address pool from the domain before modifying the gateway IP address.

The address of the gateway cannot be within any of the address segment in any IP address pool.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Configure the gateway address of the IP address pool huawei.
<HUAWEI> system-view
[~HUAWEI] ip pool huawei bas local
Info: It's successful to create an IP address pool
[*HUAWEI-ip-pool-huawei] commit
[~HUAWEI-ip-pool-huawei] gateway 10.10.110.1 255.255.0.0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >