< Home

display stp vlan

Function

The display stp vlan command displays the STP status on an interface added to a specified VLAN.

Format

display stp vlan vlan-id

Parameters

Parameter Description Value

vlan-id

Displays the STP status on an interface added to a specified VLAN.

The value is an integer ranging from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After an interface is added to a VLAN, the display stp vlan command can be used to the display the STP status on the interface. In this case, the mapping between VLANs and instances does not need to be concerned with.

Prerequisites

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 the STP status on an interface added to a specified VLAN when STP/RSTP/MSTP is running.

<HUAWEI> display stp vlan 1
       ProcessId   InstanceId   Port                        Role  State
 ----------------------------------------------------------------------
          0            0        GE0/0/1                     DESI  FORWARDING
Table 1 Description of the display stp vlan 1 command output

Item

Description

ProcessId

Process ID

InstanceId.

Instance ID

Port

Interface

Role

Interface role:
  • DESI: Designated port

  • ROOT: Root port

  • ALTE: Alternate port

  • BACK: Backup port

  • MAST: Master port

  • DISA: The interface is in initialization state.

State

Interface status:
  • FORWARDING

  • DISCARDING

# Display the spanning tree status on a port in a specified VLAN when VBST is running.
<HUAWEI> display stp vlan 20
-------[VLAN 20 Global Info][Mode VBST]-------                                          
Bridge ID              :32788.4c1f-cc6b-c208                                       
Bridge Diameter        :7   
Config Times           :Hello 2s MaxAge 20s FwDly 15s                              
Active Times           :Hello 2s MaxAge 20s FwDly 15s                              
Root ID / RPC          :20   .781d-bacc-8bc0 / 199                                 
RootPortId             :128.191 (GigabitEthernet0/0/7)                                    
Root Type              :Normal                                                     
BPDU-Protection        :Disabled
STP Converge Mode      :Normal
Time since last TC     :0 days 0h:10m:46s
Number of TC           :1 
 ----[Port190(GigabitEthernet0/0/6)][DISCARDING]----                                   
 Port Role             :Designated Port                                            
 Port Priority         :128                                                        
 Port Cost(Legacy)     :Config=20000 / Active=20000                                
 Desg. Bridge/Port     :32788.4c1f-cc6b-c208 / 128.190                             
 Port Edged            :Config=Default / Active=Disabled                           
 Point-to-point        :Config=Auto / Active=true                                  
 Port Revert Slow      :Disabled
 Port Agreement Legacy :Disabled
 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 2 Description of the display stp vlan command output

Item

Description

VLAN

VLAN ID.

Bridge ID

Bridge ID:
  • The first 16 bits represent the switch's priority.
  • The last 48 bits represent the switch's MAC address.

Bridge Diameter

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

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

Root ID / RPC

Root switch ID or external cost of the path from the switch to the root switch.

RootPortId

Root port ID.

The value 0.0 indicates that the root switch has no root port.

Root Type

Root bridge type.

BPDU-Protection

BPDU protection function:
  • Disabled

  • Enabled

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

STP Converge Mode

STP converge mode. To specify the parameter, run the stp converge command.

Time since last TC

Period from the last topology change to now.

Number of TC

Topology change count.

Port Role

Role of a port:
  • Root Port

  • Designated Port

  • Alternate Port

  • Backup Port

  • Master port

  • Disabled Port

Port Priority

Priority of the port. To set the priority for a port, run the stp port priority command.

Port Cost(Legacy)

Path cost of the port, which is calculated using Huawei proprietary algorithm:
  • config: indicates the path cost that is manually configured.
  • active: indicates the path cost that is actually used.

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

Desg. Bridge/Port

IDs of the designated switch and designated port. In the switch ID, the first 16 bits represent the switch's priority, and the last 48 bits represent the switch's MAC address. In the port ID, the first 4 bits represents the port priority, and the last 12 bits represent the port number.

Port Edged

Status of the edge port that is specified by the administrator:
  • enabled: The edge port is enabled.

  • disabled: The edge port is disabled.

Config indicates the value configured using the stp edged-port command, and Active indicates the actual value.

Point-to-point

Link type of the port. Config indicates link type configured using the stp point-to-point command, and Active indicates the actual link type.

Port Revert Slow

The delay in revertive switching during VBST calculation on a port:
  • enabled: The delay in revertive switching is enabled.

  • disabled: The delay in revertive switching is disabled.

To specify the parameter, run the stp revertive slow command.

Port Agreement Legacy

Whether the interface discards non-standard STP/RSTP packets sent by the HanDreamnet switch:

  • enabled: The interface discards non-standard STP/RSTP packets sent by the HanDreamnet switch
  • disabled: The interface does not discard non-standard STP/RSTP packets sent by the HanDreamnet switch

Transmit Limit

Maximum number of BPDUs sent by the port per second. To set the maximum number of BPDUs sent by the port per second, run the stp transmit-limit (interface view) command.

Protection Type

Protection type of the port:
  • root-protection: takes effect only on the designated port.

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

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

Port STP Mode

STP mode on an interface. To specify the parameter, run the stp mode command.

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.

BPDU Sent

Statistics about the packets sent by BPDU is as follows:
  • TCN: topology change notification

  • Config: STP packets

  • RST: RSTP packets

  • MST: MSTP packets

BPDU Received

Statistics about the packets received by BPDU.

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