2-1
2
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
} ]
Required
By default, no traffic class
exists.
Configure the match criteria
if-match match-criteria
Required
By default, no match
criterion is configured in a
traffic class.
Exit class view
quit
—