Specifications

12-12 STP Commands
set spantree portcost
Changesthecostthattransmission throughanetworkportorportsinthedefaultVLANona
RoamAboutswitchaddstothetotalcostofapathtotheSTProotbridge.
Syntax
set spantree portcost port-list cost cost
Parameters
Defaults
Thedefaultportcostdependsontheportspeedandlinktype. Table 121liststhedefaultsforSTP
portpathcost.
Mode
Enabled.
Usage
Thiscommand appliesonlytothedefaultVLAN(VLAN 1).Tochangethecostofaportinanother
VLAN,usethesetspantreeportvlancostcommand.
Example
Thefollowingcommandchangesthecostonports3and 4to20:
RBT-8100# set spantree portcost 3,4 cost 20
success: change accepted.
portlist Listofports.MSSappliesthecostchangetoallthespecifiedports.
costcost Numericvalue.Youcanspecifyavaluefrom1through65,535.STPselects
lowercostpathsoverhighercostpaths.
Table 12-1 SNMP Port Path Cost Defaults
Port Speed Link Type Default Port Path Cost
1000 Mbps Full Duplex Aggregate Link (Port Group) 19
1000 Mbps Full Duplex 4
100 Mbps Full Duplex Aggregate Link (Port Group) 19
100 Mbps Full Duplex 18
100 Mbps Half Duplex 19
10 Mbps Full Duplex Aggregate Link (Port Group) 19
10 Mbps Full Duplex 95
10 Mbps Half Duplex 100