display stp
Parameters
Parameter | Description | Value |
---|---|---|
instance instance-id | Displays the status and statistics of a spanning tree instance. If instance instance-id is not specified, the status and statistics of all spanning tree instances will be displayed in the sequence of the interface numbers. |
The value is an integer ranging from 0 to 4094. Value 0 refers to CIST. |
interface interface-type interface-number | Displays the information of a spanning tree on a specified interface. If interface interface-type interface-number is not specified, the status and statistics of all interfaces will be displayed in the sequence of the interface numbers. |
- |
brief | Displays the brief status. | - |
Usage Guidelines
Usage Scenario
- If the Protocol Status field value is Disabled, STP/RSTP/MSTP is not run.
- If STP/RSTP/MSTP has been run, information such as the working mode of STP/RSTP/MSTP will be displayed.
When the network planner has deployed STP/RSTP/MSTP on the network, you can run the display stp command to check whether the configurations and calculation result.
Example
<AC6605> display stp
Protocol Status :Disabled
Protocol Standard :IEEE 802.1s
Version :3
CIST Bridge Priority :32768
MAC address :00e0-6343-6800
Max age(s) :20
Forward delay(s) :15
Hello time(s) :2
Max hops :20
Item |
Description |
---|---|
Protocol Status |
Status of the protocol.
|
Protocol Standard |
Standards of the protocol. |
Version |
Protocol version:
|
CIST Bridge Priority |
Priority of the switch in the CIST. To set the STP priority, run the stp priority command. |
MAC address |
MAC address of the switch. |
Max age (s) |
Maximum TTL of BPDU. To set the value of Max Age, run the stp timer max-age command. |
Forward delay (s) |
Time taken by interface status transition. To set the value of Forward Delay, run the stp timer forward-delay command. |
Hello time (s) |
Interval for sending BPDUs from the root switch. To set the hello time, run the stp timer hello command. |
Max hops |
Maximum number of hops in an MST region. To set the maximum number of hops, run the stp max-hops command. |
-------[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 (This bridge is the root)
CIST RegRoot/IRPC :32768.00e0-fc0e-a421 / 0 (This bridge is the root)
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :0
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 23h:9m:30s
Number of TC :1
Last TC occurred :GigabitEthernet0/0/1
----[Port3(GigabitEthernet0/0/1)][FORWARDING]----
Port Protocol :Enabled
Port Role :Designated Port
Port Priority :128
Port Cost(Legacy) :Config=auto / Active=19
Designated Bridge/Port :32768.00e0-fc0e-a421 / 128.1229
Port Edged :Config=disabled / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit :6 packets/s
Protection Type :None
Port STP Mode :MSTP
Port Protocol Type :Config=auto / Active=dot1s
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 0
TC or TCN send :0
TC or TCN received :0
BPDU Sent :147
TCN: 0, Config: 0, RST: 0, MST: 147
BPDU Received :0
TCN: 0, Config: 0, RST: 0, MST: 0
Item |
Description |
---|---|
CIST Global Info |
CIST global information. |
Mode MSTP |
The operation mode is MSTP. By default, the mode is MSTP. To set the operation mode, run the stp mode command. |
CIST Bridge |
ID of the CIST bridge.
|
Config Times |
Values that are configured manually in the bridge protocol information:
|
Active Times |
Values that are used actually in the bridge protocol information:
|
CIST Root/ERPC |
CIST root bridge ID/External path cost (the path cost from the switch to the CIST root bridge.) |
CIST RegRoot/IRPC |
Region root bridge ID/Internal path cost (the path cost from the switch to region root bridge.) |
CIST RootPortId |
CIST root port ID. "0.0" indicates the switch is a root bridge and has no root port. |
BPDU-Protection |
BPDU protection function:
|
TC or TCN received |
Number of the received TC or TCN packets. |
TC count per hello |
Number of TC packets received within a hello interval. |
STP Converge Mode |
STP converge mode |
Time since last TC |
Period from the last topology change to now. |
Number of TC |
Topology change count. |
Last TC occurred |
Interface which causes the last topology change NOTE:
This parameter does not appear when Number of TC is 0. |
Port Protocol |
The status of the port protocol is as follows:
|
Port Role |
In CIST area, the four port roles are as follows:
|
Port Priority |
Priority of the port. To set the priority for a port, run the stp port priority command. |
Port Cost(Dot1T) |
Path cost of the port. It is calculated by dot1t algorithm.
|
Designated Bridge/Port |
ID of the designated switch and port. The first 16 bits of the switch ID represent the priority of the switch in the CIST region; the last 48 bits represent the MAC address of the switch. The first 4 bits of the port ID represent the priority and the last 12 bits represent the port number. |
Port Edged |
Edged port that is specified by the administrator:
|
Point-to-point |
Link type of the port. Config indicates that the link type is configured by running the stp point-to-point command. Active indicates the actual link type. |
Transit Limit |
Limit of the BPDUs sent by the current port during each Hello time. To set the limit of the BPDUs sent by the current port during each Hello time, run the stp transmit-limit (interface view) command. |
Protection Type |
The protection type is as follows:
|
Port STP Mode |
STP mode on an interface. |
Port Protocol Type |
Format of the packets that the interface receives and sends. The formats are as follows:
|
PortTimes |
Values in the bridge protocol information of the interface:
|
TC or TCN send |
Number of BPDUs with TC flags or TCN BPDUs sent by the port. |
TC or TCN received |
Number of BPDUs with TC flags or TCN BPDUs received by the port. |
BPDU Sent |
Statistics about the packets sent by BPDU is as follows:
|
BPDU Received |
Statistics about the packets received by BPDU. |
Last forwarding time |
Time when the interface last entered the forwarding state. |