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 is the action of copying the specified packets to the specified destination for packetanalyzing and monitoring.You can configure mirroring traffic to an interface or to the CPU.z Mirroring traffic to an interface: copies the matching packets on an interface to a destinationinterface.z Mirroring traffic to the CPU: copies the matching packets on an interface to a CPU (the CPU of thedevice where the traffic mirroring-enabled interface resides).Configuring Traffic MirroringTo configure traffic mirroring, you must enter the view of an existing traffic behavior.In a traffic behavior, the action of mirroring traffic to an interface and the action of mirroring traffic to aCPU is mutually exclusive.Mirroring Traffic to an InterfaceFollow these steps to mirror traffic to an interface:To do… Use the command… RemarksEnter system view system-view —Create a class and enterclass viewtraffic classifier tcl-name [ operator{ and | or } ]RequiredBy default, no traffic classexists.Configure the match criteria if-match match-criteriaRequiredBy default, no matchcriterion is configured in atraffic class.Exit class view quit —