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
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 switch for the default VLAN (VLAN 1), type the following
command:
DWS-1008# show spantree blockedports vlan default
Port
Vlan
-----------------------------------------------------------------------
5
190
Number of blocked ports (segments) in VLAN 1 : 1
D-Link DWS-1008 User Manual
Displaying Blocked STP Ports
Port-State
Cost Prio
Blocking
4
Portfast
128
Disabled
1