H3C Technologies H3C S12500 Series Switches User Manual
Page 116

103
[DeviceC] stp mode pvst
# Specify the current device as the root bridge of VLAN 40.
[DeviceC] stp vlan 40 root primary
# Enable the spanning tree feature globally, and enable the spanning tree feature for VLANs 10,
20, and 40.
[DeviceC] stp enable
[DeviceC] stp vlan 10 20 40 enable
5.
Configure Device D:
# Set the spanning tree mode to PVST.
[DeviceD] stp mode pvst
# Enable the spanning tree feature globally, and enable the spanning tree feature for VLANs 20,
30, and 40.
[DeviceD] stp enable
[DeviceD] stp vlan 20 30 40 enable
6.
Verify the configuration:
You can use the display stp brief command to display brief spanning tree information on each
device after the network is stable.
[DeviceA] display stp brief
VLAN Port Role STP State Protection
10 GigabitEthernet3/0/1 DESI DISCARDING NONE
10 GigabitEthernet3/0/3 DESI FORWARDING NONE
20 GigabitEthernet3/0/1 DESI FORWARDING NONE
20 GigabitEthernet3/0/2 DESI FORWARDING NONE
20 GigabitEthernet3/0/3 DESI FORWARDING NONE
30 GigabitEthernet3/0/2 DESI FORWARDING NONE
30 GigabitEthernet3/0/3 ROOT FORWARDING NONE
# Display brief spanning tree information on Device B.
[DeviceB] display stp brief
VLAN Port Role STP State Protection
10 GigabitEthernet3/0/2 DESI FORWARDING NONE
10 GigabitEthernet3/0/3 ROOT FORWARDING NONE
20 GigabitEthernet3/0/1 DESI FORWARDING NONE
20 GigabitEthernet3/0/2 DESI FORWARDING NONE
20 GigabitEthernet3/0/3 ROOT FORWARDING NONE
30 GigabitEthernet3/0/1 DESI FORWARDING NONE
30 GigabitEthernet3/0/3 DESI FORWARDING NONE
# Display brief spanning tree information on Device C.
[DeviceC] display stp brief
VLAN Port Role STP State Protection
10 GigabitEthernet3/0/1 ROOT FORWARDING NONE
10 GigabitEthernet3/0/2 ALTE FORWARDING NONE
20 GigabitEthernet3/0/1 ROOT FORWARDING NONE
20 GigabitEthernet3/0/2 ALTE FORWARDING NONE
20 GigabitEthernet3/0/3 DESI DISCARDING NONE
40 GigabitEthernet3/0/3 DESI FORWARDING NONE