System information
231
DWS-1008 CLI Reference Guide
D-Link Systems, Inc.
STP Commands
Examples: The following command resets the STP priority on port 9 to the default:
DWS-1008# clear spantree portpri 9
success: change accepted.
clear spantree portvlancost
Resets to the default value the cost of a network port or ports on paths to the STP root bridge
for a specific VLAN on a switch, or for all VLANs.
Syntax: clear spantree portvlancost port-list {all | vlan vlan-id}
port-list List of ports. The port cost is reset on the
specified ports.
all
Resets the cost for all VLANs.
vlan vlan-id VLAN name or number. MSS resets the cost for
only the specified VLAN.
Defaults: None.
Access: Enabled.
Usage: MSS does not change a port’s cost for VLANs other than the one(s) you
specify.
Examples: The following command resets the STP cost for port 12 in VLAN sunflower:
DWS-1008# clear spantree portvlancost 12 vlan sunflower
success: change accepted.
clear spantree portvlanpri
Resets to the default value the priority of a network port or ports for selection as part of the
path to the STP root bridge, on one VLAN or all VLANs.
Syntax: clear spantree portvlanpri port-list {all | vlan vlan-id}
port-list List of ports. The port priority is reset to 32 (the
default) on the specified ports.
all
Resets the priority for all VLANs.
vlan vlan-id VLAN name or number. MSS resets the priority
for only the specified VLAN.










