R3303-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Configuration Guide

139
[RouterA-GigabitEthernet3/0/1] gvrp
[RouterA-GigabitEthernet3/0/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 GigabitEthernet 3/0/1 as a trunk port, and assign it to all VLANs.
[RouterB] interface GigabitEthernet 3/0/1
[RouterB-GigabitEthernet3/0/1] port link-type trunk
[RouterB-GigabitEthernet3/0/1] port trunk permit vlan all
# Enable GVRP on trunk port GigabitEthernet 3/0/1.
[RouterB-GigabitEthernet3/0/1] gvrp
[RouterB-GigabitEthernet3/0/1] quit
# Create VLAN 3 (a static VLAN).
[RouterB] vlan 3
[RouterB-vlan3] quit
Verifying the configuration:
Use the display gvrp local-vlan command to display the local VLAN information that GVRP
maintains on ports. For example:
# Display the local VLAN information that GVRP maintains on port GigabitEthernet 3/0/1 of
Router A.
[RouterA] display gvrp local-vlan interface GigabitEthernet 3/0/1
Following VLANs exist in GVRP local database:
1(default),2-3
The output shows that information about VLAN 1, static VLAN information about VLAN 2 on the
local router, and dynamic VLAN information about VLAN 3 on Router B are all registered through
GVRP.
# Display the local VLAN information maintained by GVRP on port GigabitEthernet 3/0/1 of
Router B.
[RouterB] display gvrp local-vlan interface GigabitEthernet 3/0/1
Following VLANs exist in GVRP local database:
1(default),2-3
The output shows that information about VLAN 1, static VLAN information about VLAN 3 on the
local router, and dynamic VLAN information about VLAN 2 on Router A are all registered through
GVRP.
GVRP fixed registration mode configuration example
Network requirements
As shown in Figure 47, enable GVRP and configure the fixed registration mode on ports to enable
registration and deregistration of static VLAN information between the two routers.