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.
Configuring a QoS policy
Step
1.
Enter system view.
2.
Create a policy and enter
policy view.
3.
Associate a class with a traffic
behavior in the QoS policy.
For more information about the qos policy and classifier behavior commands, see ACL and QoS
Command Reference.
Command
system-view
traffic behavior
behavior-name
mirror-to interface
interface-type
interface-number
Command
system-view
traffic behavior
behavior-name
mirror-to cpu
Command
system-view
qos policy policy-name
classifier tcl-name behavior
behavior-name
91
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.
By executing the mirror-to interface
command repeatedly, you can configure
multiple destination ports.
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.
Remarks
N/A
By default, no policy exists.
By default, no traffic behavior is
associated with a class.