< Home

v-gateway

Function

The v-gateway command creates a virtual gateway and accesses the virtual gateway view. For the existing virtual gateway, this command is used to access the virtual gateway view.

The undo v-gateway command deletes a virtual gateway.

Format

v-gateway v-gateway-name

v-gateway v-gateway-name ip-address [ port port-number ] { private [ domain-name ] | public domain-name }

v-gateway v-gateway-name interface interface-type interface-number [ port port-number ] private [ domain-name ]

v-gateway v-gateway-name interface { old-interface-type old-interface-number } { new-interface-type new-interface-number } [ port port-number ]

undo v-gateway v-gateway-name

undo v-gateway v-gateway-name udp-port

Parameters

Parameter Description Value

v-gateway-name

Specifies the virtual gateway name.

The value is a string of 1 to 15 case-insensitive characters.

ip-address

Specifies the IP address.

Dotted decimal notation.

port port-number

Specifies the port number of the virtual gateway.

The value is an integer ranging from 1024 to 50000. By default, the value is 443.

interface-type interface-number

Specifies the interface type and interface number.

-

{ old-interface-type old-interface-number } { new-interface-type new-interface-number }

Changes the interface used by the virtual gateway.

  • old-interface-type old-interface-number: indicates the interface number to be changed.
  • new-interface-type new-interface-number: indicates the new interface number.

-

private

Indicates that the virtual gateway type is exclusive.

-

domain-name

Specifies the domain name of the virtual gateway.

The value is a string of 1 to 127 case-insensitive characters.

public

Indicates that the virtual gateway type is shared.

-

udp-port

Indicates that the port of the UDP.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can run the v-gateway v-gateway-name command to access the virtual gateway view.

Virtual gateways are classified into two types: exclusive and sharing. The exclusive virtual gateway exclusively occupies one IP address and one port. Sharing virtual gateways in a group share an IP address. Their domain names can be in either of the following situations:
  • The virtual gateways have the same parent domain name but different sub-domain names. For example, sharing virtual gateway aaa has the domain name www.example.com/aaa, and sharing virtual gateway bbb has the domain name www.example.com/bbb.
  • The sharing virtual gateways have domain names with different first nodes and same subsequent nodes. For example, sharing virtual gateway aaa has domain name example1.com, and sharing virtual gateway bbb has domain name example2.com.

Example

# Create an exclusive virtual gateway.

<sysname> system-view
[sysname] v-gateway abc 10.11.11.10 private www.example.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >