gvrp (Layer 2 Ethernet interface view)

Function

The gvrp command enables GVRP on an interface.

The undo gvrp command disables GVRP on an interface.

By default, GVRP is disabled.

Format

gvrp

undo gvrp

Parameters

None

Views

Layer 2 100GE interface view, Layer 2 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, Layer 2 50GE interface view, 50GE interface view, Eth-Trunk interface view, Layer 2 GE interface view, GE interface view, Interface group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gvrp write

Usage Guidelines

Usage Scenario

To enable GVRP, run the gvrp command in the system and interface views. After GVRP is enabled globally and on interfaces, a device can dynamically register or deregister VLANs on the GVRP interfaces.

Precautions

  • If the gvrp command is run in the system view, the command takes effect globally. If the gvrp command is run in an interface view, the command takes effect only on the interface.
  • Before enabling GVRP on an interface, you must enable GVRP globally.
  • GVRP applies only to trunk interfaces.

Example

# Enable GVRP on GE 0/1/17.
<HUAWEI> system-view
[~HUAWEI] gvrp
[*HUAWEI] interface GigabitEthernet0/1/17
[*HUAWEI-GigabitEthernet0/1/17] portswitch
[*HUAWEI-GigabitEthernet0/1/17] port link-type trunk
[*HUAWEI-GigabitEthernet0/1/17] gvrp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >