D-Link DWS-1008 CLI Manual
clear spantree portcost
Resets to the default value the cost of a network port or ports on paths to the STP root bridge in
all VLANs on a DWS-1008 switch.
Syntax: clear spantree portcost
port-list
port-list
List of ports. The port cost is reset on the specified ports.
Defaults: None.
Access: Enabled.
Usage: This command resets the cost in all VLANs. To reset the cost for only specific VLANs, use
the
clear spantree portvlancost command.
Examples: The following command resets the STP port cost on ports 5 and 6 to the default
value:
DWS-1008#
clear spantree portcost 5-6
success: change accepted.
See Also:
• clear spantree portvlancost
• set spantree portcost
• set spantree portvlancost
• show spantree
• show spantree portvlancost
clear spantree portpri
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 in all VLANs on a DWS-1008 switch.
Syntax: clear spantree portpri
port-list
port-list
List of ports. The port priority is reset to 32 (the default) on the specified
ports.
Defaults: None.
Access: Enabled.
Usage: This command resets the priority in all VLANs. To reset the priority for only specific
VLANs, use the
clear spantree portvlanpri command.
Examples: The following command resets the STP priority on port 9 to the default:
DWS-1008#
clear spantree portpri 9
success: change accepted.
Summary of Contents for DWS-1008
Page 1: ......
Page 27: ...D Link DWS 1008 CLI Manual 24 ...