gvrp registration

Function

The gvrp registration command sets a GVRP registration mode for an interface.

The undo gvrp registration command restores the default GVRP registration mode.

By default, the GVRP registration mode of an interface is Normal.

Format

gvrp registration { fixed | forbidden | normal }

undo gvrp registration [ { fixed | forbidden | normal } ]

Parameters

Parameter Description Value
fixed

Sets the GVRP registration mode of an interface to Fixed.

-

forbidden

Sets the GVRP registration mode of an interface to Forbidden.

-

normal

Sets the GVRP registration mode of an interface to Normal.

-

Views

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

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gvrp write

Usage Guidelines

Usage Scenario

The following three GVRP registration modes are available on GVRP interfaces:

  • Normal mode: allows a GVRP interface to register, deregister, and propagate dynamic and static VLANs.
  • Fixed mode: forbids a GVRP interface to register, deregister, or propagate dynamic VLANs, but allows it to register, deregister, and propagate static VLANs. If a trunk interface is set to work in fixed mode, even if packets of all VLANs are allowed to pass, only packets in manually created VLANs actually pass through the trunk interface.
  • Forbidden mode: forbids a GVRP interface to register or deregister all VLANs. If a trunk interface is set to work in forbidden mode, all VLANs are not allowed to pass.

Prerequisites

GVRP has been enabled globally, and the interface on which a GVRP registration mode is to be set has been configured as a trunk interface.

Example

# Set the GVRP registration mode of an interface to Fixed.
<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
[*HUAWEI-GigabitEthernet0/1/17] gvrp registration fixed
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >