Step
2.
Create a class and enter class
view.
3.
Configure match criteria.
For more information about the traffic classifier and if-match commands, see ACL and QoS Command
Reference.
Configuring traffic mirroring of different types
In a traffic behavior, you can configure only one type of traffic mirroring.
Mirroring traffic to a port
Step
1.
Enter system view.
2.
Create a behavior and enter
behavior view.
3.
Specify the destination
interface for traffic mirroring.
Mirroring traffic to the CPU
Step
1.
Enter system view.
2.
Create a behavior and enter
behavior view.
3.
Mirror traffic to the CPU.
NOTE:
The CPU refers to the CPU of the device where ports with traffic mirroring configured reside.
Command
traffic classifier tcl-name [ operator
{ and | or } ]
if-match match-criteria
Command
system-view
traffic behavior
behavior-name
mirror-to interface
interface-type
interface-number
Command
system-view
traffic behavior
behavior-name
mirror-to cpu
106
Remarks
By default, no traffic class exists.
By default, no match criterion is
configured in a traffic class.
Remarks
N/A
By default, no traffic behavior exists.
For more information about the traffic
behavior command, see ACL and QoS
Command Reference.
By default, traffic mirroring is not
configured in a traffic behavior.
You can specify up to four destination
interfaces by executing the mirror-to
interface command repeatedly.
Remarks
N/A
By default, no traffic behavior exists.
For more information about the traffic
behavior command, see ACL and QoS
Command Reference.
By default, no traffic mirroring is
configured in a traffic behavior.