Specifications

12-16 STP Commands
set spantree portvlancost
ChangesthecostofanetworkportorportsonpathstotheSTProotbridgeforaspecificVLANon
aRoamAboutswitch.
Syntax
set spantree portvlancost port-list cost cost {all | vlan vlan-id}
Parameters
Defaults
Thedefaultportcostdependsontheportspeedandlinktype.(SeeTable 121onpage 12.)
Mode
Enabled.
Example
Thefollowingcommandchangesthecostonports3and 4to20inVLANmauve:
RBT-8100# set spantree portvlancost 3,4 cost 20 vlan mauve
success: change accepted.
Related Commands
clearspantreeportcostonpage 122
clearspantreeportvlancostonpage 124
setspantreeportcostonpage 1212
showspantreeonpage 1220
showspantreeportvlancostonpage 1227
portlist Listofports.MSSappliesthecostchangetoallthespecifiedports.
costcost Numericvalue.Youcanspecifya
valuefrom1through65,535.STPselects
lowercostpathsoverhighercostpaths.
all ChangesthecostonallVLANs.
vlanvlanid VLANnameornumber.MSSchangesthecostononlythespecifiedVLAN.