1-7
To do … Use the command … Remarks
Display the settings of the GARP
timers
display
garp timer
[
interface
interface-list ]
Display GVRP statistics
display gvrp statistics
[
interface
interface-list ]
Display the global GVRP status
display gvrp status
Clear GARP statistics
reset garp statistics
[
interface
interface-list ]
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.
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.
Network diagram
Figure 1-2 Network diagram for GVRP configuration
Switch C
Switch E
Eth1/0/1 Eth1/0/1
Switch A
Switch B
Switch D
VLAN 5VLAN 8
VLAN 5
VLAN 7
Eth1/0/1
Eth1/0/2 Eth1/0/3 Eth1/0/2
Eth1/0/1Eth1/0/1
Configuration procedure
1) Configure Switch A
# Enable GVRP globally.
<SwitchA> system-view
[SwitchA] gvrp
# Configure Ethernet1/0/1 to be a trunk port and to permit the packets of all the VLANs.
[SwitchA] interface Ethernet 1/0/1
[SwitchA-Ethernet1/0/1] port link-type trunk
[SwitchA-Ethernet1/0/1] port trunk permit vlan all
# Enable GVRP on Ethernet1/0/1.
[SwitchA-Ethernet1/0/1] gvrp
[SwitchA-Ethernet1/0/1] quit
# Configure Ethernet1/0/2 to be a trunk port and to permit the packets of all the VLANs.