R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)

71
Ste
Command
Remarks
9. Associate the traffic class
with the traffic behavior in
the QoS policy.
classifier classifier-name behavior
behavior-name
By default, no
class-behavior
association is configured
for a QoS policy.
10. Return to system view.
quit N/A
11. Apply the QoS policy.
Applying the QoS policy to an interface or
PVC
Applying the QoS policy to the control
plane
Choose one of the
application destinations
as needed.
By default, a QoS policy
is not applied.
12. (Optional.) Display traffic
redirecting configuration.
display qos policy user-defined [ policy-name ] Available in any view.
Configuration example
Network requirements
As shown in Figure 21, packets from network segments 2.2.2.0/24 and 3.3.3.0/24 enter Router A
through GigabitEthernet 2/1/0.
Configure traffic redirecting on GigabitEthernet 2/1/0 to meet the following requirements:
Packets from network segment 2.2.2.0/24 are forwarded to GigabitEthernet 2/1/1.
Packets from network segment 3.3.3.0/24 are forwarded to GigabitEthernet 2/1/2.
Figure 21 Network diagram
Configuration procedure
# Create basic ACL 2000, and configure a rule to match packets from network segment 2.2.2.0/24.
<RouterA> system-view
[RouterA] acl number 2000
[RouterA-acl-basic-2000] rule permit source 2.2.2.0 0.0.0.255
[RouterA-acl-basic-2000] quit
# Create basic ACL 2001, and configure a rule to match packets from network segment 3.3.3.0/24.
[RouterA] acl number 2001
[RouterA-acl-basic-2001] rule permit source 3.3.3.0 0.0.0.255
[RouterA-acl-basic-2001] quit
# Create a traffic class named classifier_1, and use ACL 2000 as the match criterion in the traffic class.
[RouterA] traffic classifier classifier_1
[RouterA-classifier-classifier_1] if-match acl 2000