Displaying and maintaining the spanning tree, Spanning tree configuration example, Mstp configuration example – H3C Technologies H3C S5560 Series Switches User Manual
Page 138: Network requirements
104
Step Command
Remarks
3.
Enable BPDU drop on the
current interface.
bpdu-drop any
By default, BPDU drop is disabled.
Displaying and maintaining the spanning tree
Execute display commands in any view and reset command in user view.
Task Command
Display information about ports blocked by spanning tree
protection functions.
display stp abnormal-port
Display BPDU statistics on ports.
display stp bpdu-statistics [ interface
interface-type interface-number [ instance
instance-list ] ]
Display information about ports shut down by spanning
tree protection functions.
display stp down-port
Display the historical information of port role calculation
for the specified MSTI or all MSTIs.
display stp [ instance instance-list | vlan
vlan-id-list ] history [ slot slot-number ]
Display the statistics of TC/TCN BPDUs sent and received
by all ports in the specified MSTI or all MSTIs.
display stp [ instance instance-list | vlan
vlan-id-list ] tc [ slot slot-number ]
Display the spanning tree status and statistics.
display stp [ instance instance-list | vlan
vlan-id-list ] [ interface interface-list | slot
slot-number ] [ brief ]
Display the MST region configuration information that has
taken effect.
display stp region-configuration
Display the root bridge information of all MSTIs.
display stp root
Clear the spanning tree statistics.
reset stp [ interface interface-list ]
Spanning tree configuration example
MSTP configuration example
Network requirements
As shown in
, all devices on the network are in the same MST region. Device A and Device B
work at the distribution layer. Device C and Device D work at the access layer.
Configure MSTP so that packets of different VLANs are forwarded along different spanning trees.
•
VLAN 10 packets are forwarded along MSTI 1.
•
VLAN 30 packets are forwarded along MSTI 3.
•
VLAN 40 packets are forwarded along MSTI 4.
•
VLAN 20 packets are forwarded along MSTI 0.
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module