To do ...
Display the settings of the GARP
timers
Display GVRP statistics
Display the global GVRP status
Clear GARP statistics
GVRP Configuration Example
GVRP Configuration Example
Network requirements
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.
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 A
Eth1/0/2
Eth1/0/1
Switch C
VLAN 5
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.
display garp timer [ interface interface-list ]
display gvrp statistics [ interface
interface-list ]
display gvrp status
reset garp statistics [ interface
interface-list ]
Eth1/0/1
Eth1/0/1
Eth1/0/3
Eth1/0/1
Switch D
VLAN 8
Use the command ...
Switch B
Eth1/0/2
Eth1/0/1
Switch E
VLAN 5
VLAN 7
1-7
Remarks