88
•
If you specify a port list, this command displays the spanning tree information for the specified
ports. The displayed information is sorted by port name.
In MSTP mode, follow these guidelines:
•
If you do not specify any MSTI or port, this command displays the spanning tree 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 displays the spanning tree 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 displays the spanning tree 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 displays the spanning tree
information on the specified ports in the specified MSTI. The displayed information is sorted by
port name.
In PVST mode, follow these guidelines:
•
If you do not specify any VLAN or port, this command displays the spanning tree information of
all VLANs on all ports. The displayed information is sorted by VLAN ID and by port name in
each VLAN.
•
If you specify a VLAN but not a port, this command displays the spanning tree information on all
ports in that VLAN. The displayed information is sorted by port name.
•
If you specify some ports but not any VLAN, this command displays the spanning tree
information of all VLANs on the specified ports. The displayed information is sorted by VLAN ID,
and by port name in each VLAN.
•
If you specify both a VLAN ID and a port list, this command displays the spanning tree
information on the specified ports in the specified VLAN. The displayed information is sorted by
port name.
Related commands:
reset stp
.
Examples
# In MSTP mode, display the brief spanning tree status and statistics of MSTI 0 on ports Ethernet
1/0/1 through Ethernet 1/0/4.
<Sysname> display stp instance 0 interface ethernet 1/0/1 to ethernet 1/0/4 brief
MSTID Port Role STP State Protection
0 Ethernet1/0/1 ALTE DISCARDING LOOP
0 Ethernet1/0/2 DESI FORWARDING NONE
0 Ethernet1/0/3 DESI FORWARDING NONE
0 Ethernet1/0/4 DESI FORWARDING NONE
# In PVST mode, display the brief spanning tree status and statistics of VLAN 2 on ports Ethernet
1/0/1 through Ethernet 1/0/4.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp vlan 2 interface ethernet 1/0/1 to ethernet 1/0/4 brief
VLAN Port Role STP State Protection
2 Ethernet1/0/1 ALTE DISCARDING LOOP
2 Ethernet1/0/2 DESI FORWARDING NONE
2 Ethernet1/0/3 DESI FORWARDING NONE
2 Ethernet1/0/4 DESI FORWARDING NONE