Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual

Page 195

Advertising
background image

182

[DeviceA-vlan2] quit

2.

Configure Device B:
# Enable GVRP globally.

<DeviceB> system-view

[DeviceB] gvrp

# Configure port GigabitEthernet 3/0/1 as a trunk port, and assign it to all VLANs.

[DeviceB] interface GigabitEthernet 3/0/1

[DeviceB-GigabitEthernet3/0/1] port link-type trunk

[DeviceB-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.

[DeviceB-GigabitEthernet3/0/1] gvrp

[DeviceB-GigabitEthernet3/0/1] gvrp registration forbidden

[DeviceB-GigabitEthernet3/0/1] quit

# Create VLAN 3 (a static VLAN).

[DeviceB] vlan 3

[DeviceB-vlan3] quit

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)

The output shows that information about VLAN 1 is registered through GVRP, but static VLAN information
of VLAN 2 on the local device and dynamic VLAN information of VLAN 3 on Device B are 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)

The output shows that information about VLAN 1 is registered through GVRP, but static VLAN information
of VLAN 3 on the local device and dynamic VLAN information of VLAN 2 on Device A are not.

Advertising
This manual is related to the following products: