R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
6
• If you do not specify any port, this command displays the spanning tree information for all ports.
The displayed information is sorted by port name.
• 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 PVST mode:
• If you do not specify any VLAN or port, this command displays the spanning tree information for all
ports in all VLANs. The displayed information is sorted by VLAN ID and by port name in each
VLAN.
• If you only specify a VLAN list but not a port, this command displays the spanning tree information
for all ports in the specified VLANs. The displayed information is sorted by VLAN ID and by port
name in each VLAN.
• If you only specify a port list but not a VLAN, this command displays the spanning tree information
for the specified ports in all VLANs. The displayed information is sorted by VLAN ID and by port
name in each VLAN.
• If you specify both a VLAN list and a port list, this command displays the spanning tree information
for the ports in the specified VLANs. The displayed information is sorted by VLAN ID and by port
name in each VLAN.
In MSTP mode:
• 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 list but not a port, this command displays the spanning tree information on
all ports in the specified MSTIs. The displayed information is sorted by MSTI ID and by port name
in each MSTI.
• If you specify a port list 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 list and a port list, this command displays the spanning tree information
on the specified ports in the specified MSTIs. The displayed information is sorted by MSTI ID and by
port name in each MSTI.
During network convergence, the spanning tree information of the changing network topology is not
displayed.
Examples
# In MSTP mode, display the brief spanning tree status and statistics of MSTI 0 on ports GigabitEthernet
2/1/1 through GigabitEthernet 2/1/4.
<Sysname> display stp instance 0 interface gigabitethernet 2/1/1 to gigabitethernet 2/1/4
brief
MST ID Port Role STP State Protection
0 GigabitEthernet2/1/1 ALTE DISCARDING LOOP
0 GigabitEthernet2/1/2 DESI FORWARDING NONE
0 GigabitEthernet2/1/3 DESI FORWARDING NONE
0 GigabitEthernet2/1/4 DESI FORWARDING NONE
# In PVST mode, display the brief spanning tree status and statistics of VLAN 2 on ports GigabitEthernet
2/1/1 through GigabitEthernet 2/1/4.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp vlan 2 interface gigabitethernet 2/1/1 to gigabitethernet 2/1/4 brief