220
DWS-1008 User’s Manual
D-Link Systems, Inc.
Configuring and Managing STP
220
D-Link Systems, Inc.
Displaying the STP Port Cost on a VLAN Basis
To display a brief list of the STP port cost for a port in each of its VLANs, use the following
command:
show spantree portvlancost
port-list
This command displays the same information as the
show spantree
command’s Cost field
in a concise format for all VLANs. The
show spantree
command lists all the STP information
separately for each VLAN.
To display the STP port cost of port 1, type the following command:
DWS-1008#
show spantree portvlancost 1
port 1 VLAN 1 have path cost 19
Displaying Blocked STP Ports
To display information about ports that are in the STP blocking state, use the following
command:
show spantree blockedports
[
vlan
vlan-id
]
To display information about blocked ports on a DWS-1008 switch for the default VLAN
(VLAN 1), type the following command:
DWS-1008#
show spantree blockedports vlan default
Port Vlan Port-State Cost Prio Portfast
------------------------------------------------------------------------
22 190 Blocking 4 128 Disabled
Number of blocked ports (segments) in VLAN 1 : 1
Displaying Spanning Tree Statistics
To display STP statistics, use the following command:
show spantree statistics
[
port-list
[
vlan
vlan-id
]]