Chapter7ServiceConguration
CommandFunction
zte(cfg)#setstphopmax<1-40>Thissetsthemaximum
numberofhopbetween
anytwoterminalsof
MST .Thedefaultis20.
zte(cfg)#setstprevision<0-65535>Thissetsversion
numberofMST .
zte(cfg)#setstpedge-port{add|delete}
port<portlist>
Thisadds/deletesedge
portofSTP .
zte(cfg)#setstphmd5-digest
{CISCO|HUAWEI}<0,0x00..0-0xff..f>
Thissetsstphmd5
digest.
zte(cfg)#setstphmd5-key{CISCO|HUA
WEI}<0,0x00..0-0xff..f>
Thissetsstphmd5key.
zte(cfg)#showstpThisviewsSTP
information.
zte(cfg)#showstpinstance[<0-15>]
Thisviewsinformation
ofSTPinstance.
zte(cfg)#showstpport[<portlist>]
Thisviewsinformation
ofSTPport.
zte(cfg)#showstptrunk<trunklist>
Thisviewsinformation
ofSTPtrunk.
ConfigurationExample
STPConfigurationExample
AsshowninFigure50,conguretheSTPfunctionofswitch1and
switch2,takeswitch1astherootbridgeandblockaredundant
portintheloop.Itrealizesloopprotectionandlinkbackupbe-
tweenswitches.
FIGURE50STPCONFIGURATIONEXAMPLE
Congurationofswitch:
zte(cfg)#setstpenable
/*enablethestpprotocolofswitch1andswitch2*/
zte(cfg)#setstpforceversionstp
/*setSTPforceversionasstp*/
zte(cfg)#showstpinstance
/*showtheSTPstateofswitch1inthesystemview*/
CondentialandProprietaryInformationofZTECORPORATION99