Task
Display the global GVRP state.
Display the information about
dynamic VLAN operations on ports.
Clear the GARP statistics on ports.
GVRP configuration examples
GVRP normal registration mode configuration example
Network requirements
As shown in
Enable GVRP and configure the normal registration mode on ports to enable the registration of dynamic
and static VLAN information between the two routers.
Figure 41 Network diagram
Configuration procedure
Configure Device A:
1.
# Enable GVRP globally.
<DeviceA> system-view
[DeviceA] gvrp
# Configure port GigabitEthernet 4/1/1 as a trunk port, and assign it to all VLANs.
[DeviceA] interface GigabitEthernet 4/1/1
[DeviceA-GigabitEthernet4/1/1] port link-type trunk
[DeviceA-GigabitEthernet4/1/1] port trunk permit vlan all
# Enable GVRP on trunk port GigabitEthernet 4/1/1.
[DeviceA-GigabitEthernet4/1/1] gvrp
[DeviceA-GigabitEthernet4/1/1] quit
# Create VLAN 2 (a static VLAN).
[DeviceA] vlan 2
[DeviceA-vlan2] quit
Configure Device B:
2.
# Enable GVRP globally.
<DeviceB> system-view
[DeviceB] gvrp
# Configure port GigabitEthernet 4/1/1 as a trunk port, and assign it to all VLANs.
Figure
41, Device A and Device B are connected through their GigabitEthernet 4/1/1 ports.
Command
display gvrp status [ | { begin | exclude |
include } regular-expression ]
display gvrp vlan-operation interface
interface-type interface-number [ | { begin
| exclude | include } regular-expression ]
reset garp statistics [ interface
interface-list ]
114
Remarks
Available in any view
Available in any view
Available in user view