User`s guide
Configuring STP and RSTP
5-10 Configuring Spanning Trees
Setting a Port Priority
Youcansetaspanningtreepriorityforaport,whichwillbeusedtobreakthetiewhentwo
bridgestieforpositionastherootbridge.Thebridgewiththelowestportvaluewillbeelected.
Tosetaportpriority:
set spantree portpri port-string priority [sid sid]
Validpriorityvaluesare0‐240(inincrementsof16)with0indicatinghighpriority.
Validsidvaluesare0‐4094.Ifnotspecified,SID0willbeassumed.
Assigning Port Costs
Eachinterfacehasaspanningtreeportcostassociatedwithit,whichhelpstodeterminethe
quickestpathbetweentherootbridgeandaspecifieddestination.Byconvention,thehigherthe
portspeed,thelowertheportcost.Bydefault,thisvalueissetto0,whichforcestheportto
recalculatespanningtreeportcostbasedonthespeedoftheportandwhetherornotlegacy
(802.1D)pathcostisenabled.
Toassigndifferentspanningtreeportcosts:
set spantree adminpathcost port-string cost [sid sid]
Va1idcostvaluesare:
– 0‐65535iflegacypathcostisenabled.
– 0‐200000000iflegacypathcostisdisabled.
Validsidvaluesare0‐4094.Ifnotspecified,SID0willbeassumed.
Adjusting Bridge Protocol Data Unit (BPDU) Intervals
UsethecommandsinthissectiontoadjustthefollowingdefaultBPDUintervalvalues.
Notes: By default, legacy path cost is disabled. Enabling the device to calculate legacy path costs
affects the range of valid values that can be administratively assigned.
To check the status of legacy path cost, use show spantree legacypathcost.
To disable legacy path cost, if necessary use set spantree legacypathcost disable.
BPDU Interval Default Value
Hello time (bridge and ports) 2 seconds
Forward delay 15 seconds
Maximum age time 20 seconds