2-12 Traffic Mirroring ConfigurationWhen configuring traffic mirroring, go to these sections for information you are interested in:z Traffic Mirroring Overviewz Configuring Traffic Mirroringz Displaying and Maintaining Traffic Mirroringz Traffic Mirroring Configuration ExamplesTraffic Mirroring OverviewTraffic Mirroring OverviewTraffic mirroring is implemented by a QoS policy, which defines certain match criteria to match thepackets to be mirrored and defines the action of mirroring such packets to the specified destination.Depending on different types of mirroring destinations, there are two types of traffic mirroring:z Mirroring to port: The desired traffic on a source port is replicated and sent to a destination port.z Mirroring to CPU: The desired traffic on a source port is replicated and sent to the CPU on the LPUof the port for further analysis.Remote Traffic Mirroring OverviewRemote traffic mirroring combines traffic mirroring with remote port mirroring to use a remote mirroringgroup to mirror local packets matching the specified criteria to the specified destination port on a remotedevice.Remote traffic mirroring is implemented as follows: configure traffic mirroring on the local device tomirror packets matching certain criteria to an egress port; configure a remote source mirroring group onthe local device and specify the destination port for traffic mirroring as the egress port, so that packetssent to the destination port by traffic mirroring can be mirrored to the remote device by remote portmirroring.Configuring Traffic MirroringConfiguring Traffic MirroringFollow these steps to configure traffic mirroring:To do… Use the command… RemarksEnter system view system-view —Create a class and enter thecorresponding class viewtraffic classifier classifier-name[ operator { and | or } ]RequiredBy default, the and keywordis specified. That is, therelation between the rules inthe class view is logic AND.This operation leads you toclass view.