R2511-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V5)

104
Task Command
Remarks
Display the information about
dynamic VLAN operations on ports.
display gvrp vlan-operation interface
interface-type interface-number [ | { begin
| exclude | include } regular-expression ]
Available in any view.
Clear the GARP statistics on ports.
reset garp statistics [ interface
interface-list ]
Available in user view.
GVRP configuration examples
The following sections give examples of how to configure GVRP in various modes.
GVRP normal registration mode configuration example
Network requirements
As shown in Figure 33, enable GVRP and configure the normal registration mode on ports to enable
registration and deregistration of dynamic and static VLAN information between the two routers.
Figure 33 Network diagram
Configuration procedure
1. Configure Router A:
# Enable GVRP globally.
<RouterA> system-view
[RouterA] gvrp
# Configure port Ethernet 1/1 as a trunk port, and assign it to all VLANs.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] port link-type trunk
[RouterA-Ethernet1/1] port trunk permit vlan all
# Enable GVRP on trunk port Ethernet 1/1.
[RouterA-Ethernet1/1] gvrp
[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