The display stp active command displays the status of and statistics on spanning trees of all Up interfaces.
Usage Scenario
To view information about spanning trees on all Up interfaces, run the display stp active command.
Precautions
In a multi-instance scenario, a PW interface's STP state does not take effect for any MSTP instance with a non-0 ID. For such an instance, its actual STP state is the same as instance 0's STP state.
The actual STP state of an interface bound to a process in link-share mode is the same as that of the interface bound to a process in no-link-share mode.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display stp active -------[CIST Global Info][Mode MSTP]------- CIST Bridge :61440.00e0-fc12-3456 Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :61440.00e0-fc12-3456 / 0 CIST RegRoot/IRPC :61440.00e0-fc12-3456 / 0 CIST RootPortId :0.0 BPDU-Protection :Disabled TC or TCN received :85 TC count per hello :0 STP Converge Mode :Normal Time since last TC :0 days 9h:10m:8s Number of TC :13 Last TC occurred :GigabitEthernet0/1/4 ----[Port18(GigabitEthernet0/1/1)][FORWARDING]---- Port Protocol :Enabled Port Role :Designated Port Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=20000 Designated Bridge/Port :61440.00e0-fc12-3456 / 128.18 Port Edged :Config=default / Active=enabled Point-to-point :Config=auto / Active=true Transit Limit :10 packets/s Protection Type :None Port STP Mode :MSTP Port Protocol Type :Config=auto / Active=dot1s BPDU Encapsulation :Config=stp / Active=stp PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20 TC or TCN send :5 TC or TCN received :0 BPDU Sent :178445 TCN: 0, Config: 0, RST: 0, MST: 178445 BPDU Received :0 TCN: 0, Config: 0, RST: 0, MST: 0 Last forwarding time: 2012/04/19 16:58:37 UTC+08:00 ----[Port19(GigabitEthernet0/1/9)][FORWARDING]---- Port Protocol :Enabled Port Role :Designated Port Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=20000 Designated Bridge/Port :61440.00e0-fc12-3456 / 128.19 Port Edged :Config=default / Active=enabled Point-to-point :Config=auto / Active=true Transit Limit :10 packets/s Protection Type :None Port STP Mode :MSTP Port Protocol Type :Config=auto / Active=dot1s BPDU Encapsulation :Config=stp / Active=stp PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20 TC or TCN send :0 TC or TCN received :0 BPDU Sent :5 TCN: 0, Config: 0, RST: 0, MST: 5 BPDU Received :0 TCN: 0, Config: 0, RST: 0, MST: 0 Last forwarding time: 2012/04/23 20:06:08 UTC+08:00 -------[MSTI 1 Global Info]------- MSTI Bridge ID :61440.00e0-fc12-3456 MSTI RegRoot/IRPC :61440.00e0-fc12-3456 / 0 MSTI RootPortId :0.0 Master Bridge :61440.00e0-fc12-3456 Cost to Master :0 TC received :2 TC count per hello :0 Time since last TC :0 days 9h:10m:8s Number of TC :9 Last TC occurred :GigabitEthernet0/1/4
Item | Description |
---|---|
CIST Bridge | CIST bridge ID:
|
CIST Root/ERPC | CIST root device ID/Cost of the external path (path from the local device to the CIST root device). |
CIST RegRoot/IRPC | ID of the CIST region root bridge/Cost of the internal path (path from the local device to the CIST region root bridge). |
CIST RootPortId | ID of the CIST root port. "0.0" indicates that the device is a root device and does not have a root port. |
Mode | STP mode:
|
Config Times | Time value in the manually configured bridge protocol information:
|
Active Times | Time value in the bridge protocol information that is actually used:
|
BPDU-Protection | BPDU protection:
|
TC or TCN received | Number of received TC or TCN packets. |
TC count per hello | Number of TC packets received per Hello time. |
TC or TCN send | Number of TC or TCN BPDUs sent on the interface. |
TC received | Number of received TC BPDUs. |
STP Converge Mode | STP converge mode. There are two convergence modes: fast and normal. |
Time since last TC | Time since the last topology change. |
Number of TC | Number of topology changes. |
Port Protocol | Whether STP is enabled on the interface:
|
Port Role | Role of the port. In the CIST region, four port roles are available:
|
Port Priority | Interface priority. For details on how to configure the interface priority, see stp port priority. |
Port Edged | Edge port (specified by the administrator).
Config indicates the value configured using the stp edged-port command, and Active indicates the actual value. |
Port STP Mode | STP mode of the interface. |
Port Protocol Type | Format of BPDUs sent and received on the interface, which can be: The options are as follows:
The default value is auto. Config: indicates that the item passes the check. Packet format configured using the stp compliance command. Active indicates the actual packet format. |
Designated Bridge/Port | ID of the device and ID of the designated port. The first 16 bits of the device ID indicate the priority of the device in the CIST, and the last 48 bits indicate the MAC address of the device. The first 4 bits of the port ID indicate the priority, and the last 12 bits indicate the port number. |
Point-to-point | Link type of the port. Config indicates the link type configured using the stp point-to-point command, and Active indicates the actual link type. |
Transit Limit | Maximum number of BPDUs sent by the port per second. For details, see stp transmit-limit. |
Protection Type | Protection type, which can be:
|
BPDU Encapsulation | Format of BPDUs that are sent and received on the interface. The options are as follows:
|
BPDU Sent | Statistics about sent BPDUs:
|
BPDU Received | Statistics on received BPDUs. |
MSTI Bridge ID | MSTI bridge ID. |
MSTI RegRoot/IRPC | ID of the MSTI root bridge/Cost of the internal path (path from the local device to the MSTI root bridge). |
MSTI RootPortId | ID of the MSTI root interface. "0.0" indicates that the device is a root device and does not have a root port. |
Master Bridge | ID of the bridge where the master interface is located.
|
Cost to Master | Cost of the path from the local device to the bridge where the master interface is located. 0 indicates that the master interface is located at the current bridge. |
Last TC occurred | Displays the port that causes the last network topology change. This line is not displayed if Number of TC is 0. |
Last forwarding time | Time when the interface last entered the forwarding state. |
PortTimes/Port Times | Time value in the bridge protocol information of the port.
|