HP MSR2000/3000/4000 Router Series ACL and QoS Configuration Guide
68
Configuration example
Network requirements
As shown in Figure 21, redirect the traffic that GigabitEthernet 1/1 receives from the network segments
2.2.2.0/24 and 3.3.3.0/24 to GigabitEthernet 1/2 and GigabitEthernet 1/3, respectively.
Figure 21 Network diagram
Configuration procedure
# Create basic ACL 2000, and configure a rule to match packets from the 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 the 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
[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 1/2.
[RouterA] traffic behavior behavior_1
[RouterA-behavior-behavior_1] redirect interface GigabitEthernet 1/2
[RouterA-behavior-behavior_1] quit
# Create a traffic behavior named behavior_2, and configure the action of redirecting traffic to
GigabitEthernet 1/3.
[RouterA] traffic behavior behavior_2
[RouterA-behavior-behavior_2] redirect interface GigabitEthernet 1/3
[RouterA-behavior-behavior_2] quit
# Create a QoS policy named policy, and associate the traffic classes classifier_1 and classifier_2 with
the traffic behaviors behavior_1 and behavior_2, respectively.