< Home

v-gateway interface

Function

The v-gateway interface command changes the interface of the virtual gateway or changes the virtual gateway address from an IP address to an interface.

The undo v-gateway interface command deletes the specified interface of virtual gateway.

Format

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

undo v-gateway v-gateway-name interface interface-type interface-number

Parameters

Parameter Description Value
v-gateway-name Indicates the name of the virtual gateway. The value must be the name of an existing virtual gateway.
interface-type interface-number Indicates the interface type and number. -
port port-number Specifies the port of the virtual gateway. The value is an integer ranging from 1024 to 50000. The default port is 443.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

In a scenario where the v-gateway v-gateway-name interface interface-type interface-number [ port port-number ] command is executed:
  • If the virtual gateway originally works in interface mode, the virtual gateway has an interface added as the virtual gateway interface, and the original virtual gateway interface remains unchanged.
  • If the virtual gateway originally works in IP address mode, change the IP address mode to the interface mode, delete original IP addresses of the virtual gateway, and obtain the first IP address of the interface as the virtual gateway IP address.

If you run the v-gateway v-gateway-name interface interface-type interface-number1 interface-type interface-number2 [ port port-number ] command, the interface of the virtual gateway is changed from interface-number1 to interface-number2.

If the IP address in not specified, the loopback address will be used as the IP address of the virtual gateway.

Example

# Change the interface of virtual gateway gateway to GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] v-gateway gateway interface GigabitEthernet 0/0/2 GigabitEthernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >