1-7
GVRP Configuration Example

GVRP Configuration Example

Network requirements
z Enable GVRP on all the switches in the network so that the VLAN configurations on Switch C and
Switch E can be applied to all switches in the network, thus implementing dynamic VLAN
information registration and refresh, as shown in Figure 1-2.
z By configuring the GVRP registration modes of specific Ethernet ports, you can enable the
corresponding VLANs in the switched network to communicate with each other.
Figure 1-2 Network diagram for GVRP configuration
Switch C Switch E
GEth 1/ 0/1 GEth 1/ 0/1
Switch A Switch B
Switch D
VLAN 5VLAN 8VLAN 5
VLAN 7
GEth1/0/1
GEth1/0/2 GEth1/0/3 GEth1/0/2
GEth1/0/1GEth1/0/1
Configuration procedure
1) Configure Switch A
# Enable GVRP globally.
<SwitchA> system-view
[SwitchA] gvrp
# Configure GigabitEthernet 1/0/1 to be a trunk port and to permit the packets of all the VLANs.
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 1/0/1.
[SwitchA-GigabitEthernet1/0/1] gvrp
[SwitchA-GigabitEthernet1/0/1] quit
# Configure GigabitEthernet 1/0/2 to be a trunk port and to permit the packets of all the VLANs.
[SwitchA] interface GigabitEthernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 1/0/2.
[SwitchA-GigabitEthernet1/0/2] gvrp
[SwitchA-GigabitEthernet1/0/2] quit
# Configure GigabitEthernet 1/0/3 to be a trunk port and to permit the packets of all the VLANs.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port link-type trunk