Chapter7ServiceConguration
1.Thefollowingexampledescribeshowtosetportmirroringon
ingressdirection.
zte(cfg)#setmirroraddsource-port1ingress
zte(cfg)#setmirroradddest-port2ingress
zte(cfg)#setmirrorstatisticingresssample-interval100
/*settheportsample-intervalofmirrorstatistic*/
2.Thefollowingexampledescribeshowtosetportmirroringon
egressdirection.
zte(cfg)#setmirroraddsource-port1egress
zte(cfg)#setmirroradddest-port2egress
zte(cfg)#setmirrorstatisticegresssample-interval100
Note:
Fortheportmirroringonegressdirection,themirroringdes-
tinationporthastobeagigabitportorbeasubcardport.
Otherwise,thenormalportmirroringwillbeimplemented.
3.Thefollowingexampledescribeshowtoviewportmirroring.
zte(cfg)#showmirror
Ingressmirrorinformation:
---------------------------
Ingressstatisticalmirror:sample-interval100
/*ifsampleintervalis1,thenitisnormalportmirroring.*/
Sourceport:1
Destinationport:2
Egressmirrorinformation:
---------------------------
Geport(subcard)egressstatisticalmirror:sample-interval100
/*Ifsampleinterval=1ormirroringdestinationportisnotgigabit
portordaughtercardport,thennormalportmirroringisdone.*/
Sourceport:1
Destinationport:2
SinglePortLoopDetection
Configuration
LoopDetectionOverview
Singleportloopdetectionistocheckwhetheraloopexistsinthe
portsoftheswitch.Ifsuchaloopexists,itmayresultinerrorsin
learningMACaddressesandmayeasilycauseabroadcaststorm.
Inseverecase,switchandnetworkmaybedown.Startingthe
singleportloopdetectionanddisablingtheportwithloopcanef-
cientlyavoidtheinuencecausedbyportloop.
Theswitchsendsatestpacketthroughaport.Ifthistestpacket
isreceivedthroughtheportwithoutanychange(oronlyatagis
attached),itindicatesthataloopexistsinthisport.
Thetestpacketsentbytheswitchincludesthefollowingthree
parameters:
CondentialandProprietaryInformationofZTECORPORATION75