179
3. Configure match criteria.
if-match
match-criteria
By default, no match criterion is
configured in a traffic class.
Configuring a traffic behavior
1. Enter system view.
N/A
2. Create a traffic behavior and
enter traffic behavior view.
traffic behavior
behavior-name
By default, no
exists.
3. Configure a mirroring action
for the traffic behavior.
• Mirror traffic to an interface:
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:
By default, no mirroring action 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.
4. (Optional.) Display traffic
behavior configuration.
display traffic behavior
Available in any view.
Configuring a QoS policy
1. Enter system view.
N/A
2. Create a QoS
enter QoS policy view.
qos policy
policy-name
By default, no QoS policy exists.
3. Associate a class with a
traffic behavior in the QoS
policy.
classifier
tcl-name
behavior
behavior-name
By default, no traffic behavior is
associated with a class.
4. (Optional.) D
policy configuration.
display qos policy
Available in any view.
Applying a QoS policy
Applying a QoS policy to an interface
By applying a QoS policy to an interface, you can mirror the traffic in the specified direction on the
interface. A policy can be applied to multiple interfaces, but in one direction (inbound or outbound) of
an interface, only one policy can be applied.
To apply a QoS policy to the outbound traffic of an interface, make sure the traffic behavior used by
the policy contains only traffic mirroring actions. If non-traffic-mirroring actions are configured, all
actions configured in the traffic behavior become invalid.