Step
1.
Enter system view.
2.
Apply a QoS policy to a VLAN.
For more information about the qos vlan-policy command, see ACL and QoS Command Reference.
Apply a QoS policy globally
You can apply a QoS policy globally to mirror the traffic in a specific direction on all ports.
To apply a QoS policy globally:
Step
1.
Enter system view.
2.
Apply a QoS policy globally.
For more information about the qos apply policy command, see ACL and QoS Command Reference.
Apply a QoS policy to the control plane
You can apply a QoS policy to the control plane to mirror the traffic in the inbound direction of the control
plane.
To apply a QoS policy to the control plane:
Step
1.
Enter system view.
2.
Enter control plane view.
3.
Apply a QoS policy to the control plane.
For more information about the control-plane and qos apply policy commands, see ACL and QoS
Command Reference.
Displaying and maintaining traffic mirroring
Task
Display user-defined traffic
behavior configuration
information.
Command
system-view
qos vlan-policy policy-name vlan vlan-id-list { inbound |
outbound }
Command
system-view
qos apply policy policy-name global { inbound |
outbound }
Command
system-view
control-plane slot slot-number
qos apply policy policy-name inbound
Command
display traffic behavior user-defined
[ behavior-name ] [ | { begin | exclude |
include } regular-expression ]
108
Remarks
Available in any view