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 12‐1onpage 12.)
Mode
Enabled.
Example
Thefollowingcommandchangesthecostonports3and 4to20inVLANmauve:
RBT-8100# set spantree portvlancost 3,4 cost 20 vlan mauve
success: change accepted.
Related Commands
• clearspantreeportcostonpage 12‐2
• clearspantreeportvlancostonpage 12‐4
• setspantreeportcostonpage 12‐12
• showspantreeonpage 12‐20
• showspantreeportvlancostonpage 12‐27
port‐list Listofports.MSSappliesthecostchangetoallthespecifiedports.
costcost Numericvalue.Youcanspecifya
valuefrom1through65,535.STPselects
lower‐costpathsoverhigher‐costpaths.
all ChangesthecostonallVLANs.
vlanvlan‐id VLANnameornumber.MSSchangesthecostononlythespecifiedVLAN.