R2511-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V5)
106
[RouterA-Ethernet1/1] gvrp
[RouterA-Ethernet1/1] gvrp registration fixed
[RouterA-Ethernet1/1] quit
# Create VLAN 2 (a static VLAN).
[RouterA] vlan 2
[RouterA-vlan2] quit
2. Configure Router B:
# Enable GVRP globally.
<RouterB> system-view
[RouterB] gvrp
# Configure port Ethernet 1/1 as a trunk port, and assign it to all VLANs.
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] port link-type trunk
[RouterB-Ethernet1/1] port trunk permit vlan all
# Enable GVRP on Ethernet 1/1, and set the GVRP registration mode to fixed on the port.
[RouterB-Ethernet1/1] gvrp
[RouterB-Ethernet1/1] gvrp registration fixed
[RouterB-Ethernet1/1] quit
# Create VLAN 3 (a static VLAN).
[RouterB] vlan 3
[RouterB-vlan3] quit
Verifying the configuration
Use the display gvrp local-vlan command to display the local VLAN information that GVRP maintains on
ports. For example:
# Display the local VLAN information maintained by GVRP on port Ethernet 1/1 of Router A.
[RouterA] display gvrp local-vlan interface ethernet 1/1
Following VLANs exist in GVRP local database:
1(default), 2
The output shows that information about VLAN 1 and static VLAN information about VLAN 2 on the local
router are registered through GVRP, but dynamic VLAN information about VLAN 3 on Router B is not.
# Display the local VLAN information maintained by GVRP on port Ethernet 1/1 of Router B.
[RouterB] display gvrp local-vlan interface ethernet 1/1
Following VLANs exist in GVRP local database:
1(default), 3
The output shows that information about VLAN 1 and static VLAN information about VLAN 3 on the local
router are registered through GVRP, but dynamic VLAN information about VLAN 2 on Router A is not.
GVRP forbidden registration mode configuration example
Network requirements
As shown in Figure 35, enable GVRP and configure the forbidden registration mode on ports to prevent
registration and deregistration of all VLANs but VLAN 1 between the two routers.










