H3C S5120-EI Series Command Reference Manual page 107

Lan switching
Hide thumbs Also See for S5120-EI Series:
Table of Contents

Advertisement

include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.
Description
Use the display stp command to display the MSTP status and statistics.
Based on the MSTP status and statistics, you can analyze and maintain the network topology or check
whether MSTP is working normally.
If you do not specify any MSTI or port, this command will display the MSTP information of all MSTIs on
all ports. The displayed information is sorted by MSTI ID and by port name in each MSTI.
If you specify an MSTI but not a port, this command will display the MSTP information on all ports in that
MSTI. The displayed information is sorted by port name.
If you specify some ports but not an MSTI, this command will display the MSTP information of all MSTIs
on the specified ports. The displayed information is sorted by MSTI ID, and by port name in each MSTI.
If you specify both an MSTI ID and a port list, this command will display the MSTP information on the
specified ports in the specified MSTI. The displayed information is sorted by port name.
The MSTP status information includes:
CIST global parameters: Protocol work mode, switch priority in the CIST (Priority), MAC address,
hello time, maximum age, forward delay, maximum hops, common root bridge of the CIST, external
path cost from the switch to the CIST common root, regional root, the internal path cost from the
switch to the regional root, CIST root port of the switch, and status of the BPDU guard function
(enabled or disabled).
CIST port parameters: Port status, role, priority, path cost, designated bridge, designated port,
edge port/non-edge port, whether connecting to a point-to-point link, maximum transmission rate
(transmit limit), status of the root guard function (enabled or disabled), BPDU format, boundary
port/non-boundary port, hello time, max age, forward delay, message age, remaining hops, and
whether rapid state transition enabled for designated ports.
MSTI global parameters: MSTI ID, bridge priority of the MSTI, regional root, internal path cost, MSTI
root port, and master bridge.
MSTI port parameters: Port status, role, priority, path cost, designated bridge, designated port,
remaining hops, and whether rapid state transition enabled (for designated ports).
The statistics include:
The number of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent from each port
The number of TCN BPDUs, configuration BPDUs, RST BPDUs, MST BPDUs and wrong BPDUs
received on each port
The number of BPDUs discarded on each port
Related commands: reset stp.
Examples
# Display the brief MSTP status and statistics of MSTI 0 on ports GigabitEthernet 1/0/1 through
GigabitEthernet 1/0/4.
<Sysname> display stp instance 0 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4
brief
MSTID
0
0
Port
GigabitEthernet1/0/1
GigabitEthernet1/0/2
Role
STP State
ALTE
DISCARDING
DESI
FORWARDING
95
Protection
LOOP
NONE

Advertisement

Table of Contents
loading

Table of Contents