ZXR105250SeriesCongurationGuide
switchwillbecomethenewrootbridgetoreplacetheoldrootbridge,whichcausesthe
entirenetworktorecalculatethespanningtree.Toavoidthissituation,portrootprotection
canbeconguredontheportwhereanewswitchaccessesthenetwork.
Theportrootprotectionfeatureisusedtoprotecttherootbridge.Afterbeingcongured
withrootprotection,ifaportreceivesaBPDUinwhichthenumericalvalueforthebridge
IDislower,theportwillenterRootGuardstatetoavoidspanningtreerecalculation.In
thisstate,nodatawillbeforwardedfromthisport.Oncetheportnolongerreceivesany
BPDUinwhichthenumericalvalueforthebridgeIDislower,itwillgothroughthetransitory
states,thatis,ListeningstateandLearningstate,andnallytransittoForwardingstate.
Therecoveryisautomatic,withoutanyhumanintervention.
ConguringSTP
Inthedefaultconguration,theMSTPonlyhastheinstancewithins_idbeing0.This
instancealwaysexistsanduserscannotmanuallydeleteit.Thisinstanceismappedwith
VLANs1to4094.
TheSTPcongurationincludesthefollowingcommands:
CommandFunction
zte(cfg)#setstp{enable|disable}EnablesordisablestheSTP .
zte(cfg)#setstpforceversion{mstp|rstp|stp}SetstheforcedSTPtypeto
MSTP/RSTP/STP .
zte(cfg)#setstpport<portlist>{enable|disable}EnablesordisablestheportSTP
function.
zte(cfg)#setstpport<portlist>linktype{point-point|shared}Setsportconnectiontype.
zte(cfg)#setstpport<portlist>packettype{IEEE|CISCO|
HUAWEI|HAMMER|extend}
Setsinstanceportpackettype.
zte(cfg)#setstpport<portlist>pcheckChecksthecurrentSTPprotocol
typeandselectsthebestprotocol.
zte(cfg)#setstpport<portlist>bpdu-guard{enable|disable}EnablesordisablestheBPDU
packetprotectionfunctiononthe
port.
zte(cfg)#setstpbpdu-interval<10-65535>SetsanintervalforBPDU
protectionrecovery.
zte(cfg)#setstptrunk<trunklist>{enable|disable}Enablestrunk/disablestheSTP
function.
zte(cfg)#setstptrunk<trunklist>linktype{point-point|shared}Setstrunkconnectiontype.
zte(cfg)#setstptrunk<trunklist>packettype{IEEE|CISCO|
HUAWEI|HAMMER|extend}
Setspackettypessentand
receivedbythetrunk.
zte(cfg)#setstpedge-port{add|delete}port<portlist>Adds/deletesSTPedgeport.
5-36
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential