Chapter4ServiceConīæguration
CommandFunction
showstp(allconīægurationmodes)
DisplaysSTPglobalconīæguration
information.
showstpinstance[<0-63>](allconīægurationmodes)
Displaysthestateinformationofthe
instance.
showstpport[<portlist>](allconīægurationmodes)
DisplaystheSTPportconīæguration
information.
showstptrunk<trunklist>(allconīægurationmodes)
DisplaysSTPtrunkconīæguration
information.
STPConīgurationInstance
lConīægurationDescription
AsshowninFigure4-10,conīæguretheSTPfunctionofswitch1andswitch2,take
switch1astherootbridgeandblockaredundantportintheloop.Itrealizesloop
protectionandlinkbackupbetweenswitches.
Figure4-10STPConīægurationInstance
lConīægurationProcedure
zte(cfg)#setstpenable
/*enablethestpprotocolofswitch1andswitch2*/
zte(cfg)#setstpforceversionstp
/*setSTPforceversionasstp*/
lConīægurationVeriīæcation
1.ChecktheSTPstateofswitch1inthesystemview.
zte(cfg)#showstpinstance
Spanningtreeenabledprotocolstp
RootID:
Priority:32768Address:00.d0.d0.02.00.54
HelloTime(s):2MaxAge(s):20
ForwardDelay(s):15
RegRootID:
Priority:32768Address:00.d0.d0.02.00.54
RemainHops:20
BridgeID:
Priority:32768Address:00.d0.d0.02.00.54
HelloTime(s):2MaxAge(s):20
ForwardDelay(s):15MaxHops:20
InterfacePortIdCostStatusRoleBoundGuardStatus
-------------------------------------------------------
4-37
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandConīædential