R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)
172
For more information about the traffic classifier and if-match commands, see ACL and QoS Command
Reference.
Mirroring traffic to an interface
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a behavior, and enter
behavior view.
traffic behavior behavior-name
By default, no traffic behavior
exists.
For more information about the
traffic behavior command, see
ACL and QoS Command
Reference.
3. Specify the destination
interface for traffic mirroring.
mirror-to interface interface-type
interface-number
By default, traffic mirroring is not
configured in a traffic behavior.
Configuring a QoS policy
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a policy and enter
policy view.
qos policy policy-name By default, no 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.
For more information about the qos policy and classifier behavior commands, see ACL and QoS
Command Reference.
Applying a QoS policy
For more information about applying a QoS policy, see ACL and QoS Configuration Guide.
By applying a QoS policy to a Layer 2 interface, you can mirror the traffic in a specific 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 a Layer 2 interface:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 interface view.
interface interface-type
interface-number
Settings in interface view take
effect on the current interface.
3. Apply a policy to the
interface.
qos apply policy policy-name
{ inbound | outbound }
N/A
For more information about the qos
apply policy command, see ACL
and QoS Command Reference.










