< Home

v-gateway public-ip

Function

The v-gateway public-ip command sets the public IP address shared by a virtual gateway.

The undo v-gateway public-ip command deletes the public IP address shared by a virtual gateway.

Format

v-gateway public-ip public-ip

undo v-gateway public-ip

Parameters

Parameter Description Value
public-ip public-ip Public IP address shared by virtual gateways The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

This command is configured only when virtual gateways of multiple virtual systems share a public IP address. This command can be configured only by the administrator of the root system.

The value of public-ip must be consistent with the IP address of the root system interface. When virtual gateways that share a public IP address are configured in the system, public-ip can be modified but cannot be deleted. After public-ip is modified, all virtual gateways that use the public IP address are modified simultaneously.

When public-ip is used by a virtual gateway that does not use the shared IP address, this command fails to be executed, and the system prompts that the address has been occupied.

Example

# Set the public IP address shared by virtual gateways to 1.1.1.1.

<sysname> system-view
[sysname] v-gateway public-ip 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >