Enabling GVRP
Context
To dynamically register or deregister VLAN attributes on a switching network, configure GVRP on all devices of the switching network. Before enabling GVRP on an interface, you must enable GVRP globally. GVRP can be enabled only on trunk interfaces. Ensure that the trunk interfaces allow packets from all dynamically registered VLANs.
Procedure
- Run system-view
The system view is displayed.
- Run gvrp
GVRP is enabled globally.
By default, GVRP is disabled globally.
- Run interface interface-type interface-number
The interface view is displayed.
- Run port link-type trunk
The link type of the interface is set to trunk.
- Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }
The interface is added to the specified VLANs.
- Run gvrp
GVRP is enabled on the interface.
By default, GVRP is disabled on an interface.
The VLAN configuration will trigger GVRP messages. If too many VLANs are configured, you are advised to run the vlan batch command in the system view to configure VLANs on switches one by one and configure timers. Otherwise, dynamic VLANs may flap.
If an interface is changed to another type, such as access, hybrid, or dot1q-tunnel, the system asks you to disable GVRP on the interface first.
The blocked port of STP, RSTP, MSTI 0, ERPS, or Smart Link can block GVRP messages.
Global GVRP and VLAN-based Spanning Tree (VBST) cannot be configured simultaneously, and GVRP and Multichassis Link Aggregation Group (M-LAG) cannot be configured on an Eth-Trunk simultaneously.
- (Optional) Run gvrp registration { fixed | forbidden | normal }
The registration mode of the GVRP interface is set.
By default, the registration mode of a GVRP interface is normal.
- Run commit
The configuration is committed.