[RouterB-vlan3] quit
Verify the configuration
3.
Use the display gvrp local-vlan command to display the local VLAN information maintained by GVRP on
ports. For example:
# Display the local VLAN information maintained by GVRP 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
According to the output, information about VLAN 1, static VLAN information of VLAN 2 on the local
router, and dynamic VLAN information of 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
According to the output, information about VLAN 1, static VLAN information of VLAN 3 on the local
router, and dynamic VLAN information of VLAN 2 on Router A are all registered through GVRP.
GVRP fixed registration mode configuration example
Network requirements
As shown in
Router A and Router B are connected through their GigabitEthernet 3/0/1 ports.
•
Enable GVRP and configure the fixed registration mode on ports to enable the registration and
•
deregistration of static VLAN information between the two routers.
Figure 46 Network diagram for GVRP fixed registration mode configuration
Configuration procedure
Configure Router A
1.
# Enable GVRP globally.
<RouterA> system-view
[RouterA] gvrp
# Configure port GigabitEthernet 3/0/1 as a trunk port, and assign it to all VLANs.
[RouterA] interface gigabitEthernet 3/0/1
[RouterA-GigabitEthernet3/0/1] port link-type trunk
[RouterA-GigabitEthernet3/0/1] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 3/0/1 and set the GVRP registration mode to fixed on the port.
[RouterA-GigabitEthernet3/0/1] gvrp
[RouterA-GigabitEthernet3/0/1] gvrp registration fixed
[RouterA-GigabitEthernet3/0/1] quit
# Create VLAN 2 (a static VLAN).
Figure
46,
139