System information
232
DWS-1008 CLI Reference Guide
D-Link Systems, Inc.
STP Commands
Defaults: None.
Access: Enabled.
Usage: MSS does not change a port’s priority for VLANs other than the one(s) you
specify.
Examples: The following command resets the STP priority for port 5 in VLAN avocado:
DWS-1008# clear spantree portvlanpri 5 vlan avocado
success: change accepted.
clear spantree statistics
Clears STP statistics counters for a network port or ports and resets them to 0.
Syntax: clear spantree statistics port-list [vlan vlan-id]
port-list List of ports. Statistics counters are reset on the
specified ports.
vlan vlan-id VLAN name or number. MSS resets statistics
counters for only the specified VLAN.
Defaults: None.
Access: Enabled.
Examples: The following command clears STP statistics counters for ports 1, and 4
through 6, for all VLANs:
DWS-1008# clear spantree statistics 1,4-6
success: change accepted.
set spantree
Enables or disables STP on one VLAN or all VLANs configured on a switch.
Syntax: set spantree {enable | disable} [{all | vlan vlan-id | port port-list vlan-id}]
enable
Enables STP.
disable
Disables STP.
all
Enables or disables STP on all VLANs.










