9-1
9
Traffic Mirroring Configuration
When configuring traffic mirroring, go to these sections for information you are interested in:
z
Traffic Mirroring Overview
z
Configuring Traffic Mirroring
z
Displaying and Maintaining Traffic Mirroring
z
Traffic Mirroring Configuration Examples
Traffic Mirroring Overview
Traffic mirroring is the action of copying the specified packets to the specified destination for packet
analyzing 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 destination
interface.
z
Mirroring traffic to the CPU: copies the matching packets on an interface to a CPU (the CPU of the
device where the traffic mirroring-enabled interface resides).
Configuring Traffic Mirroring
To 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 a
CPU is mutually exclusive.
Mirroring Traffic to an Interface
Follow these steps to mirror traffic to an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a class and enter
class view
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
—
Configure the match criteria
if-match match-criteria
—
Exit class view
quit
—
Create a behavior and enter
behavior view
traffic behavior behavior-name
Required