446 Configuring and managing spanning tree protocol
NN47250-500 (Version 03.01)

Changing STP port parameters

You can change the STP cost and priority of an individual port, on a global basis or an individual VLAN basis.

Changing the STP port cost

To change the cost of a port, use one of the following commands.
set spantree portcost port-list cost cost
set spantree portvlancost port-list cost cost {all | vlan vlan-id}
The set spantree portcost command changes the cost for ports in the default VLAN (VLAN 1) only. The set spantree
portvlancost command changes the cost for ports in a specific other VLAN or in all VLANs.
Specify a value from 1 through 65,535 for the cost. The default depends on the port speed and link type. (See Table 26
on page 443.)
The all option applies the change to all VLANs. Alternatively, specify an individual VLAN.
To change the cost on ports 3 and 4 in the default VLAN to 20, type the following command:
WSS# set spantree portcost 3,4 cost 20
success: change accepted.
To change the cost for the same ports in VLAN mauve, type the following command:
WSS# set spantree portvlancost 3,4 cost 20 vlan mauve
success: change accepted.

Resetting the STP port cost to the default value

To reset the STP port cost to the default value, use one of the following commands:
clear spantree portcost port-list
clear spantree portvlancost port-list {all | vlan vlan-id}
The command applies only to the ports you specify. The port cost on other ports remains unchanged.
To reset the cost of ports 3 and 4 in the default VLAN to the default value, type the following command:
WSS# clear spantree portcost 3-4
success: change accepted.
To reset the cost of ports 3 and 4 for VLAN beige, type the following command:
WSS# clear spantree portvlancost 3-4 vlan beige
success: change accepted.