Verifying the configuration, Network requirements, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual
Page 194

181
Verifying the configuration
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 Device A.
[DeviceA] display gvrp local-vlan interface GigabitEthernet 3/0/1
Following VLANs exist in GVRP local database:
1(default), 2
According to the output above, information about VLAN 1 and static VLAN information of VLAN 2 on
the local device are registered through GVRP, but dynamic VLAN information of VLAN 3 on Device B is
not.
# Display the local VLAN information maintained by GVRP on port GigabitEthernet 3/0/1 of Device B.
[DeviceB] display gvrp local-vlan interface GigabitEthernet 3/0/1
Following VLANs exist in GVRP local database:
1(default), 3
According to the output above, information about VLAN 1 and static VLAN information of VLAN 3 on
the local device are registered through GVRP, but dynamic VLAN information of VLAN 2 on Device A is
not.
GVRP forbidden registration mode configuration example
Network requirements
As shown in
, enable GVRP and configure the forbidden registration mode on ports to prevent
the registration of all VLANs but VLAN 1 between the two switches.
Figure 64 Network diagram
Configuration procedure
1.
Configure Device A:
# Enable GVRP globally.
[DeviceA] gvrp
# Configure port GigabitEthernet 3/0/1 as a trunk port, and assign it to all VLANs.
[DeviceA] interface GigabitEthernet 3/0/1
[DeviceA-GigabitEthernet3/0/1] port link-type trunk
[DeviceA-GigabitEthernet3/0/1] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 3/0/1, and set the GVRP registration mode to forbidden on
the port.
[DeviceA-GigabitEthernet3/0/1] gvrp
[DeviceA-GigabitEthernet3/0/1] gvrp registration forbidden
[DeviceA-GigabitEthernet3/0/1] quit
# Create VLAN 2 (a static VLAN).
[DeviceA] vlan 2