Port priority is the eligibility of the port to be the designated port to the root bridge, and thus part of the
path to the root bridge. When the switch has more than one link to the root bridge, STP uses the link
with the lowest priority value. You can set this parameter on an individual port basis, for all VLANs the
port is in, or for specific VLANs.
Specify a priority from 0 (highest priority) through 255 (lowest priority). The default is 128.
To change the bridge priority, use the following command:
set spantree priority value {all | vlan vlan-id}
Specify a bridge priority from 0 through 65,535. The default is 32,768. The all option applies the change
globally to all VLANs. Alternatively, specify an individual VLAN.
To change the bridge priority of VLAN pink to 69, type the following command:
DWS-1008# set spantree priority 69 vlan pink
success: change accepted.
You can change the STP cost and priority of an individual port, on a global basis or an individual VLAN
basis.
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. 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:
DWS-1008# 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:
DWS-1008# set spantree portvlancost 3,4 cost 20 vlan mauve
success: change accepted.
D-Link DWS-1008 User Manual
Port Priority
Changing the Bridge Priority
Changing STP Port Parameters
Changing the STP Port Cost
0