Gvrp configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C WX5500E Series Access Controllers User Manual
Page 176

165
Task Command
Remarks
Display GVRP statistics on ports.
display gvrp statistics [ interface
interface-list ] [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display the global GVRP state.
display gvrp status [ | { begin | exclude |
include } regular-expression ]
Available in any view.
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
, enable GVRP and configure the normal registration mode on ports to enable
registration and deregistration of dynamic and static VLAN information between the two devices.
Figure 50 Network diagram
Configuration procedure
1.
Configure Device A:
# Enable GVRP globally.
[DeviceA] gvrp
# Configure port GigabitEthernet 1/0/1 as a trunk port, and assign it to all VLANs.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan all
# Enable GVRP on trunk port GigabitEthernet 1/0/1.
[DeviceA-GigabitEthernet1/0/1] gvrp
[DeviceA-GigabitEthernet1/0/1] quit
# Create VLAN 2 (a static VLAN).
[DeviceA] vlan 2
[DeviceA-vlan2] quit
2.
Configure Device B:
# Enable GVRP globally.