
108
To do…
Use the command…
Remarks
Create a class and enter class view
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
Required
By default, no traffic class exists.
Configure match criteria
if-match
match-criteria
Required
By default, no match criterion is
configured in a traffic class.
NOTE:
For more information about the
traffic classifier
and
if-match
commands, see
ACL and QoS Command
Reference.
Configuring traffic mirroring of different types
NOTE:
In a traffic behavior, you can configure only one type of traffic mirroring.
Mirroring traffic to a port
Follow these steps to mirror traffic to an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a behavior and enter
behavior view
traffic behavior
behavior-name
Required
By default, no traffic behavior exists.
Specify the destination interface
for traffic mirroring
mirror-to
interface
interface-type
interface-number
Required
By default, traffic mirroring is not
configured in a traffic behavior.
NOTE:
For more information about the
traffic behavior
command, see
ACL and QoS Command Reference.
Mirroring traffic to the CPU
Follow these steps to mirror traffic to the CPU:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a behavior and enter
behavior view
traffic behavior
behavior-name
Required
By default, no traffic behavior exists.
Mirror traffic to the CPU
mirror-to cpu
Required
By default, no traffic mirroring is
configured in a traffic behavior.
NOTE:
•
For more information about the
traffic behavior
command, see
ACL and QoS Command Reference.
•
The CPU refers to the CPU of the device where ports with traffic mirroring configured reside.