Step
3.
Configure match criteria.
Configuring a traffic behavior
Step
1.
Enter system view.
2.
Create a traffic behavior and
enter traffic behavior view.
3.
Specify a mirroring
destination for the traffic
behavior.
4.
(Optional.) Display traffic
behavior configuration.
Configuring a QoS policy
Step
1.
Enter system view.
2.
Create a QoS policy and
enter the QoS policy view.
3.
Associate a class with a traffic
behavior in the QoS policy.
4.
(Optional.) Display QoS
policy configuration.
Command
if-match match-criteria
Command
system-view
traffic behavior behavior-name
•
Mirror traffic to an interface:
In Release 2307 and
Release 2310:
mirror-to interface
interface-type
interface-number
In Release 231 1P04 and
later versions:
mirror-to interface
interface-type
interface-number
[ destination-ip
destination-ip-address
source-ip source-ip-address
[ dscp dscp-value | vlan
vlan-id | vrf-instance
vrf-instance-name ] * ]
•
Mirror traffic to a CPU:
mirror-to cpu
display traffic behavior
Command
system-view
qos policy policy-name
classifier tcl-name behavior
behavior-name
display qos policy
195
Remarks
By default, no match criterion is
configured in a traffic class.
Remarks
N/A
By default, no traffic behavior
exists.
By default, no mirroring
destination is configured for a
traffic behavior.
When the destination IP address is
specified for mirrored packets, the
output interface of the route to the
destination address does not
support ECMP.
Available in any view.
Remarks
N/A
By default, no QoS policy exists.
By default, no traffic behavior is
associated with a class.
Available in any view.