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.
| Parameter | Description | Value |
|---|---|---|
| public-ip public-ip | Public IP address shared by virtual gateways | The value is in dotted decimal notation. |
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.