Specifications

Changing Standard Spanning Tree Parameters
13-4 Configuring and Managing Spanning Tree Protocol
Changing STP Port Parameters
YoucanchangetheSTPcostandpriorityofanindividualport,onaglobalbasisoranindividual
VLANbasis.
Changing the STP Port Cost
Tochangethecostofaport,useoneofthefollowingcommands.
set spantree portcost port-list cost cost
set spantree portvlancost port-list cost cost {all | vlan vlan-id}
ThesetspantreeportcostcommandchangesthecostforportsinthedefaultVLAN(VLAN 1)
only.ThesetspantreeportvlancostcommandchangesthecostforportsinaspecificotherVLAN
orinallVLANs.
Specifyavaluefrom1through65,535forthecost. Thedefaultdependsonthe port
speedandlink
type.(SeeTable 131onpage 133.)
ThealloptionappliesthechangetoallVLANs.Alternatively,specifyanindividualVLAN.
Examples
Tochangethecostonports1and 2inthedefaultVLANto20,typethefollowingcommand:
RBT-8100# set spantree portcost 1,2 cost 20
success: change accepted.
Tochangethecostforthesa meports inVLANmauve,typethefollowingcommand:
RBT-8100# set spantree portvlancost 1,2 cost 20 vlan mauve
success: change accepted.
Resetting the STP Port Cost to the Default Value
ToresettheSTPportcosttothedefaultvalue,useoneofthefollowingcommands:
clear spantree portcost port-list
clear spantree portvlancost port-list {all | vlan vlan-id}
Thecommandappliesonlytotheportsyouspecify.Theportcostonotherportsremains
unchanged.
Examples
Toresetthecostofports1and2inthedefaultVLANtothedefaultvalue,typethefollowing
command:
RBT-8100# clear spantree portcost 1-2
success: change accepted.
Toresetthecostofports1and2forVLANbeige,typethefollowingcommand:
RBT-8100# clear spantree portvlancost 1-2 vlan beige
success: change accepted.