R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)
72
[RouterA-classifier-classifier_1] quit
# Create a traffic class named classifier_2, and use ACL 2001 as the match criterion in the traffic class.
[RouterA] traffic classifier classifier_2
[RouterA-classifier-classifier_2] if-match acl 2001
[RouterA-classifier-classifier_2] quit
# Create a traffic behavior named behavior_1, and configure the action of redirecting traffic to
GigabitEthernet 2/1/1.
[RouterA] traffic behavior behavior_1
[RouterA-behavior-behavior_1] redirect interface gigabitethernet 2/1/1
[RouterA-behavior-behavior_1] quit
# Create a traffic behavior named behavior_2, and configure the action of redirecting traffic to
GigabitEthernet 2/1/2.
[RouterA] traffic behavior behavior_2
[RouterA-behavior-behavior_2] redirect interface gigabitethernet 2/1/2
[RouterA-behavior-behavior_2] quit
# Create a QoS policy named policy, associate traffic class classifier_1 with traffic behavior behavior_1,
and associate traffic class classifier_2 with traffic behavior behavior_2 in the QoS policy.
[RouterA] qos policy policy
[RouterA-qospolicy-policy] classifier classifier_1 behavior behavior_1
[RouterA-qospolicy-policy] classifier classifier_2 behavior behavior_2
[RouterA-qospolicy-policy] quit
# Apply the QoS policy policy to the incoming traffic of GigabitEthernet 2/1/0.
[RouterA] interface gigabitethernet 2/1/0
[RouterA-GigabitEthernet2/1/0] qos apply policy policy inbound