Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface
interface-type interface-number
The view of the Ethernet interface participating in STP calculation is displayed.
Step 3
Run:
stp loop-protection
Loop protection for the root port is configured on the switching device.
By default, loop protection is disabled.
----End
8.5.6 Checking the Configuration
After MSTP protection functions are configured, you can verify the configurations.
Prerequisites
All configurations for MSTP protection functions are complete.
Procedure
l
Run the
display stp
[
instance
instance-id
] [
interface
{
interface-type interface-
number
} ] [
brief
] command to view spanning-tree status and statistics.
----End
Example
Run the
display stp
command to view the BPDU protection status and configured protection
type on a switching device. For example:
<Huawei>
display stp instance 0 interface ethernet 2/0/1
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.00e0-fc0e-a421
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.00e0-fc0e-a421 / 0
CIST RegRoot/IRPC :32768.00e0-fc0e-a421 / 0
CIST RootPortId :0.0
BPDU-Protection :Enabled
TC or TCN received :8
STP Converge Mode :Fast
Time since last TC :0 days 23h:9m:30s
----[Port3(Ethernet2/0/1)][FORWARDING]----
Port Protocol :Enabled
Port Role :CIST Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=100 / Active=100
Designated Bridge/Port :32768.00e0-fc0e-a421 / 128.1229
Port Edged :Config=disabled / Active=disabled
Point-to-point :Config=auto / Active=true
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
8 MSTP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
250