Chapter5ServiceConguration
5.4PortMirroring
PortMirroringOverview
Portmirroringisusedtomirrordatapacketsoftheswitchport(ingressmirroringport)toan
ingressdestinationport(ingressmonitoringport),ormirrorthedatapacketsoftheswitch
port(egressmirroringport)toanegressdestinationport(egressmonitoringport).
Byusingmirroring,datapacketsowinginoroutofacertainportcanbemonitored.Port
mirroringprovidesaneffectivetoolforthemaintenanceandmonitoringoftheswitch.
TheZXR105250switchprovidestheRemoteSwitchedPortAnalyzer(RSPAN)function,
thatis,whenthepacketissentfromthedestinationport,thespeciedtagsuchaspriority
orVIDcanbeadded,whichprovidessupportforremotemirroring.
Note:
Bydefault,switchesdonothavemirroringportsormonitoringports.Thecorrectdata
packetsreceivedbytheingressmirroringportaremirroredontothemonitoringports,but
datapacketsdirectlydiscardedontheingressport(forexample,becauseofCRCerrors)
arenotmirrored.
ConguringPortMirroring
Theportmirroringcongurationincludesthefollowingcommands:
CommandFunction
zte(cfg)#setmirrorsession<1-3>addsource-port
<portlist>{ingress|egress}
Addsanegressoringress
mirroringsourceportaccordingto
thesession.
zte(cfg)#setmirrorsession<1-3>adddest-port<1-28>{ingress
|egress|rspan}
Addsanegressoringress
mirroringdestinationport
accordingtothesession.
zte(cfg)#setmirrorsession<1-3>deletesource-port
<portlist>{ingress|egress}
Deletesanegressoringress
monitoringportaccordingtothe
session.
zte(cfg)#setmirrorsession<1-3>deletedest-port
<1-28>{ingress|egress|rspan}
Deletesanegressoringress
monitoring(destination)port
accordingtothesession.
zte(cfg)#setmirrorrspan-tagvlan-id<1-4094>priority
<0-7>{ingress|egress}
SetsRSPANtagformatincluding
VLAN-IDandpriority.
zte(cfg)#setmirrorstatisticsample-interval<1-2047>{ingress|
egress}
Setsingressoregressport
mirroringsamplefrequency.
5-11
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential