< Home

v-gateway public-ip new-port

Function

The v-gateway public-ip new-port command modifies a listening port of a virtual gateway.

Format

v-gateway v-gateway-name public-ip new-port port-num [ new-domain domain-name ]

Parameters

Parameter Description Value
v-gateway v-gateway-name Virtual gateway name The value must be the name of an existing virtual gateway.
new-port port-num Listening port of a virtual gateway after modification The value is an integer ranging from 1024 to 50000. The default value is 443.
new-domain domain-name Domain name of a virtual gateway after modification The value is a string of 1 to127 case-insensitive characters.

Views

System view/virtual 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.

Configuration methods of domain-name vary depending on types of virtual gateways:
  • Sharing mode virtual gateway: domain-name is in the public domain name or subdomain format. Only the subdomain part can be modified.
  • Exclusive mode virtual gateway: domain-name is the domain name of a virtual gateway.

This command is mainly used to modify a port or modify both a port and a domain name. To separately modify a domain name, see v-gateway domain.

For a sharing mode virtual gateway, if a port number is changed to another port number rather than default port number 443, enter https://Public domain name: Port number/Subdomain in the browser when you access the virtual gateway.

Example

# Change the listening port of exclusive mode virtual gateway v-gateway1 to 2001 and domain name to www.example.com.

<sysname> system-view
[sysname] v-gateway v-gateway1 public-ip new-port 2001 new-domain www.example.com

# Change the listening port of sharing mode virtual gateway v-gateway2 to 2002 and change domain name www.test.com/company1 to www.test.com/company2.

<sysname> system-view
[sysname] v-gateway v-gateway2 public-ip new-port 2002 new-domain www.test.com/company2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >