< Home

display stp active

Function

The display stp active command displays the status of and statistics on spanning trees of all Up interfaces.

Format

STP/RSTP/MSTP: display stp [ process process-id ] active

VBST: display stp [ vlan vlan-id ] active

Parameters

Parameter Description Value
process process-id

Multiple Spanning Tree Protocol (MSTP) process ID

If process process-id is not specified, the status of and statistics on process 0 will be displayed.

The value is an integer ranging from 1 to 31.

vlan vlan-id

Displays details and statistics about spanning trees of all ports in Up state in a specified VLAN.

If vlan vlan-id is not specified, details and statistics about spanning trees of all ports in Up state in all VLANs are displayed.

NOTE:

If vlan vlan-id is specified, only details and statistics about spanning trees of all ports in Up state in a specified VLAN are displayed.

The value is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display stp active command displays information about spanning trees of Up interfaces only.

Precautions

  • If you run this command in the system view without specifying an MSTP process ID, information about MSTP process 0 is displayed by default.

  • If you run this command in the MSTP process view without specifying an MSTP process ID, information about the MSTP process in this view is displayed by default.

  • In VBST, if NAC authentication is configured but user authentication fails on a port that is configured as an edge port and is in Active state, information about the port is not displayed.

Example

# Display information about spanning trees of all Up interfaces of MSTP process 0 when STP/RSTP/MSTP is running.

<HUAWEI> display stp active
-------[CIST Global Info][Mode MSTP]-------                                     
CIST Bridge         :61440.781d-ba56-f06c                                       
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20                    
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20                    
CIST Root/ERPC      :61440.781d-ba56-f06c / 0 (This bridge is the root)                                  
CIST RegRoot/IRPC   :61440.781d-ba56-f06c / 0 (This bridge is the root)                                  
CIST RootPortId     :0.0                                                        
BPDU-Protection     :Disabled                                                   
TC or TCN received  :85                                                         
TC count per hello  :0                                                          
STP Converge Mode   :Normal                                                     
Share region-configuration :Enabled
Time since last TC  :0 days 9h:10m:8s
Number of TC        :13                                                         
Last TC occurred    :GigabitEthernet0/0/4
----[Port18(GigabitEthernet0/0/10)][FORWARDING]----                             
 Port Protocol       :Enabled                                                   
 Port Role           :Designated Port                                           
 Port Priority       :128                                                       
 Port Cost(Dot1T )   :Config=auto / Active=20000                                
 Designated Bridge/Port   :61440.781d-ba56-f06c / 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/0/17)][FORWARDING]----                             
 Port Protocol       :Enabled                                                   
 Port Role           :Designated Port                                           
 Port Priority       :128                                                       
 Port Cost(Dot1T )   :Config=auto / Active=20000                                
 Designated Bridge/Port   :61440.781d-ba56-f06c / 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.781d-ba56-f06c                                       
MSTI RegRoot/IRPC   :61440.781d-ba56-f06c / 0(This bridge is the root)
MSTI RootPortId     :0.0                                                        
Master Bridge       :61440.781d-ba56-f06c                                       
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/0/4
# Display details and statistics about spanning trees of all ports in Up state in VLAN 10 when VBST is running.
<HUAWEI> display stp vlan 10 active
-------[VLAN 10 Global Info][Mode VBST]-------
Bridge ID           :10   .00e0-5553-9900
Bridge Diameter     :7   
Config Times        :Hello 2s MaxAge 20s FwDly 15s
Active Times        :Hello 2s MaxAge 20s FwDly 15s
Root ID / RPC       :10   .00e0-5553-9900 / 0 (This bridge is the root)
RootPortId          :0.0
Root Type           :Primary
BPDU-Protection     :Disabled
STP Converge Mode   :Normal
Time since last TC  :0 days 0h:10m:46s
Number of TC        :1
 ----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
 Port Role          :Designated Port
 Port Priority      :128
 Port Cost(Legacy)  :Config=Auto / Active=20
 Desg. Bridge/Port  :10   .00e0-5553-9900 / 128.1
 Port Edged         :Config=Default / Active=Disabled
 Point-to-point     :Config=Auto / Active=true
 Transit Limit      :6 packets/hello
 Protection Type    :None
 Port STP Mode      :VBST
 BPDU Encapsulation :Config=VBST / Active=VBST
 BPDU Sent          :0             
          TCN: 0, Config: 0, RST: 0
 BPDU Received      :0             
          TCN: 0, Config: 0, RST: 0
Table 1 Description of the display stp active command output

Item

Description

CIST Bridge

Bridge ID

CIST bridge:

Bridge ID:

NOTE:

CIST Bridge is displayed when STP/RSTP/MSTP is running. Bridge ID is displayed when VBST is running.

Bridge Diameter

VBST network diameter.

Config Times

Configured bridge protocol parameters:
  • Hello: interval at which Bridge Protocol Data Units (BPDUs) are sent. To specify the parameter, run the stp timer hello command.

  • MaxAge: maximum TTL of a BPDU. To specify the parameter, run the stp timer max-age command.

  • FwDly: delay in interface status transition. To specify the parameter, run the stp timer forward-delay command.

  • MaxHop: maximum number of hops in the MST region. To specify the parameter, run the stp max-hops command.

Active Times

Bridge protocol parameters that are being used:
  • Hello: interval at which BPDUs are sent

  • MaxAge: maximum TTL of a BPDU

  • FwDly: delay in interface status transition

  • MaxHop: maximum number of hops in the MST region

CIST Root/ERPC

Root ID/RPC

CIST Root/ERPC indicates the CIST root bridge ID/external path cost from the switch to the root bridge.

Root ID/RPC indicates the root bridge ID in a VLAN/external path cost from the switch to the root bridge.

NOTE:

CIST Root/ERPC is displayed when STP/RSTP/MSTP is running. Root ID/RPC is displayed when VBST is running.

CIST RegRoot/IRPC

ID of the CIST region root bridge or cost of the path from the switch to the CIST region root switch.

CIST RootPortId

RootPortId

CIST RootPortId indicates the CIST root port ID. "0.0" indicates that the switch is the root switch without the root port.

RootPortId indicates the root port ID in a VLAN. "0.0" indicates that the switch is the root switch without the root port.

NOTE:

CIST RootPortId is displayed when STP/RSTP/MSTP is running. RootPortId is displayed when VBST is running.

BPDU-Protection

Whether BPDU protection is enabled:
  • Disabled: BPDU protection is disabled.

  • Enabled: BPDU protection is enabled.

To specify the parameter, run the stp bpdu-protection command.

TC or TCN received

Number of received topology change (TC) or topology change notification (TCN) BPDUs.

TC count per hello

Number of TC BPDUs received per Hello time.

STP Converge Mode

Convergence mode of the Spanning Tree Protocol (SPT), which can be fast or normal. For details, see stp converge.

Share region-configuration

The status of sharing the region configuration of process 0. The status is fixed as Enabled.

Time since last TC

Time since the last topology change.

Number of TC

Number of topology changes.

Last TC occurred

Interface which causes the last topology change.

NOTE:

This parameter does not appear when Number of TC is 0.

Port Protocol

STP status on the interface:
  • Enabled: STP is enabled on the interface.
  • Disabled: STP is disabled on the interface.

To specify the parameter, run the stp enable command.

Port Role

Role of an interface:
  • Root Port
  • Designated Port
  • Alternate Port
  • Backup Port
  • Master port

  • Disabled Port

Port Priority

Interface priority. To configure the interface priority, run the stp port priority command.

Port Cost(Dot1T)

Path cost (calculated by dot1t) of an interface:
  • Config: configured path cost
  • Active: path cost that is being used

To specify the parameter, run the stp pathcost-standard and stp cost commands.

Designated Bridge/Port

Switch ID/Port ID The first 16 bits represent the switch's priority in the CIST region, and the last 48 bits represent the switch's MAC address. The first 4 bits of the port ID represent the port's priority, and the last 12 bits represent the port number.

Port Edged

Whether the edge interface (specified by the administrator) is enabled:
  • enabled: The edge interface is enabled.

  • disabled: The edge interface is disabled.

Config indicates the value that is specified in the stp edged-port command, and Active indicates the value in use.

Point-to-point

Link type of the interface. Config indicates the link type that is specified in the stp point-to-point command, and Active indicates the link type that is being used.

Transit Limit

Maximum number of BPDUs that the current interface can send per second. For details, see stp transmit-limit.

Protection Type

Protection type, which can be:
  • root-protection: Protection takes effect only on the specified interface.

  • loop-protection: Protection takes effect only on the root interface or alternate interface.

  • None

To specify the parameter, run the stp root-protection or stp loop-protection command.

Port STP Mode

STP mode of the interface.

To specify the parameter, run the stp mode command.

Port Protocol Type

Format of BPDUs sent and received on the interface, which can be:
  • auto

  • legacy

  • dot1s

The default value is auto. Config indicates the packet format that is specified in the stp compliance command, and Active indicates the packet format in use.

BPDU Encapsulation

Format of BPDUs that are sent and received on the interface. In STP/RSTP/MSTP mode, the value is stp. In VBST mode, the value is VBST.

PortTimes

Bridge protocol parameters of the interface:
  • Hello: interval at which BPDUs are sent. To specify the parameter, run the stp timer hello command.

  • MaxAge: maximum TTL of a BPDU. To specify the parameter, run the stp timer max-age command.

  • FwDly: delay in interface status transition. To specify the parameter, run the stp timer forward-delay command.

  • RemHop: maximum number of hops in the MST region. To specify the parameter, run the stp max-hops command.

TC or TCN send

Number of TC or TCN BPDUs sent on the interface.

TC or TCN received

Number of TC or TCN BPDUs received on the interface.

BPDU Sent

Statistics on sent BPDUs, including:
  • TCN: TCN BPDUs

  • Config: STP BPDUs

  • RST: Rapid Spanning Tree Protocol (RSTP) BPDUs

  • MST: MSTP BPDUs

BPDU Received

Statistics on received BPDUs.

MSTI Bridge ID

Multiple Spanning Tree instance (MSTI) bridge ID.

MSTI RegRoot/IRPC

MSTI root bridge ID/Cost of the internal path (path from the switch to the MSTI root switch).

MSTI RootPortId

ID of the MSTI root interface. 0.0 indicates that the switch is the root switch and does not provide any root interface.

Master Bridge

ID of the bridge where the master interface is located.
  • The first 16 bits represent the switch's priority in the CIST.
  • The last 48 bits represent the switch's MAC address.

Cost to Master

Cost of the path from the switch to the bridge where the master interface is located. 0 indicates that the master interface is located at the current bridge.

TC received

Number of received TC BPDU.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >