< Home

display stp global

Function

The display stp global command displays global Spanning Tree Protocol (STP) information.

Format

display stp [ process process-id ] global

Parameters

Parameter Description Value
process process-id

Multiple Spanning Tree Protocol (MSTP) process ID

If process process-id is not specified, the global STP information of MSTP process 0 will be displayed. VBST does not support processes. Therefore, this parameter cannot be specified when the spanning tree protocol is VBST.

The value is an integer ranging from 1 to 31.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When a device provides many interfaces, the display stp command output contains a large amount of information, and it is difficult to find the desired information quickly and view global information at a glance. The display stp brief command output, by comparison, displays information about spanning trees on interfaces, but not global information.

Using the display stp global command, you can view global STP information conveniently.

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.

Example

# Display brief STP information about MSTP process 0 when STP/RSTP/MSTP is running.

<HUAWEI> display stp global
Protocol Status            : Enabled                                            
Bpdu-filter default        : Disabled                                           
Tc-protection              : Enabled                                           
Tc-protection threshold    : 1                                                  
Tc-protection interval     : 2s                                                 
Edged port default         : Enabled                                            
Pathcost-standard          : Dot1t                                              
Timer-factor               : 3                                                  
Transmit-limit             : 10                                                 
Bridge-diameter            : 7                                                  
-------[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                                   
CIST RegRoot/IRPC   :61440.781d-ba56-f06c / 0                                   
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:12m:34s
Number of TC        :13                                                         
Last TC occurred    :GigabitEthernet0/0/4
# Display brief STP information when VBST is running.
<HUAWEI> display stp global
Protocol Status            : Enabled             
Bpdu-filter default        : Disabled            
Tc-protection              : Enabled            
Tc-protection threshold    : 1                   
Tc-protection interval     : 2s                  
Edged port default         : Disabled            
Pathcost-standard          : Dot1t               
Timer-factor               : 3                   
Transmit-limit             : 6                   
STP Converge Mode          : Normal
Table 1 Description of the display stp global command output

Item

Description

Protocol Status

Spanning Tree Protocol (STP) status:
  • Enabled: STP is enabled.
  • Disabled: STP is disabled.

To specify the parameter, run the stp enable command.

Bpdu-filter default

Whether the function of configuring device interfaces as Bridge Protocol Data Unit (BPDU) filter interfaces is enabled:
  • Enabled: The function is enabled.
  • Disabled: The function is disabled.

To specify the parameter, run the stp bpdu-filter default command.

Tc-protection

Topology change (TC) protection status. This function is permanently enabled.

Tc-protection threshold

Threshold of TC packets that the device can handle and immediately refresh forwarding entries in a given period. To specify the parameter, run the stp tc-protection threshold command.

Tc-protection interval

Time the MSTP takes to handle a given number of TC packets and immediately refresh forwarding entries. To specify the parameter, run the stp tc-protection interval command.

Edged port default

Whether the function of configuring all ports of the switch as edge ports is enabled:
  • Enabled: The function is enabled.
  • Disabled: The function is disabled.

To specify the parameter, run the stp edged-port default command.

Pathcost-standard

Method of calculating the MSTP path cost

To specify the parameter, run the stp pathcost-standard command.

Timer-factor

Multiplier of Hello time

To specify the parameter, run the stp timer-factor command.

Transmit-limit

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

Bridge-diameter

Network diameter of the MSTP

To specify the parameter, run the stp bridge-diameter command.

CIST Bridge

Common and internal spanning tree (CIST) bridge ID
  • The first 16 bits represent the switch's priority in the CIST.
  • The last 48 bits represent the switch's MAC address.

Config Times

Configured bridge protocol parameters:
  • 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.
  • 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

CIST root switch ID/Cost of the external path (path from the switch to the CIST root switch)

CIST RegRoot/IRPC

ID of the CIST region root bridge/Cost of the internal path (path from the switch to the CIST region root switch)

CIST RootPortId

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

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 TC or topology change notification (TCN) packets

TC count per hello

Number of TC packets 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.

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