The display stp vlan command displays the STP status on an interface added to a specified VLAN.
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. |
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.
# 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
Item |
Description |
---|---|
ProcessId |
Process ID |
InstanceId. |
Instance ID |
Port |
Interface |
Role |
Interface role:
|
State |
Interface status:
|
<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
Item |
Description |
---|---|
VLAN |
VLAN ID. |
Bridge ID |
Bridge ID:
|
Bridge Diameter |
VBST network diameter. To specify the parameter, run the stp bridge-diameter command. |
Config Times |
Configured bridge protocol parameters:
|
Active Times |
Bridge protocol parameters that are being used:
|
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:
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:
|
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:
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:
|
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:
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:
|
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:
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:
|
BPDU Received |
Statistics about the packets received by BPDU. |