The Generic Attribute Registration Protocol (GARP) provides a mechanism to propagate attributes so that a protocol entity can register and deregister attributes.
The GARP VLAN Registration Protocol (GVRP) is used to register and deregister VLAN attributes.
A manually configured VLAN is a static VLAN, and a VLAN created through GVRP is a dynamic VLAN.
VLAN registration: adds a port to a VLAN. When a port receives a VLAN attribute declaration, it registers the VLAN specified in the declaration.
VLAN deregistration: removes a port from a VLAN. When a port receives a VLAN attribute declaration, it deregisters the VLAN specified in the declaration.
Configure GVRP on an S series switch, except S1700:
1. Enable GVRP globally. Note: On an S series switch, except S9300, the VCMP role must be configured as Transparent or Silent.
[HUAWEI] vcmp role silent
[HUAWEI] gvrp
2. Add interfaces to VLANs.
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type trunk
[HUAWEI-GigabitEthernet1/0/1] port trunk allow-pass vlan all
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] interface gigabitethernet 1/0/2
[HUAWEI-GigabitEthernet1/0/2] port link-type trunk
[HUAWEI-GigabitEthernet1/0/2] port trunk allow-pass vlan all
[HUAWEI-GigabitEthernet1/0/2] quit
3. Enable GVRP on interfaces.
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] gvrp
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] interface gigabitethernet 1/0/2
[HUAWEI-GigabitEthernet1/0/2] gvrp
[HUAWEI-GigabitEthernet1/0/2] quit
4. Set the timer to recommended value.
[HUAWEI] garp timer leaveall 12000
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] garp timer leave 3000
[HUAWEI-GigabitEthernet1/0/1] garp timer join 600
[HUAWEI-GigabitEthernet1/0/1] garp timer hold 100
[HUAWEI-GigabitEthernet1/0/1] quit
5. (Optional) Set the registration mode on interfaces. The registration mode is set to Fixed here. The default mode is Normal.
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] gvrp
[HUAWEI-GigabitEthernet1/0/1] gvrp registration fixed
[HUAWEI-GigabitEthernet1/0/1] quit
If you have more questions, you can seek help from following ways: