91
Step Command
Remarks
11.
Apply the QoS policy.
•
Applying the QoS policy to an interface
or PVC
•
Applying the QoS policy to a VLAN
Choose one of the
application destinations
as needed.
Traffic redirecting configuration example
Network requirements
As shown in
, configure the actions of redirecting traffic to interfaces:
•
Packets with source IP address 2.1.1.1 received on GigabitEthernet 1/0/1 of Router A are
forwarded out of GigabitEthernet 1/0/2.
•
Packets with source IP address 2.1.1.2 received on GigabitEthernet 1/0/1 of Router A are
forwarded out of GigabitEthernet 1/0/3.
•
Other packets received on GigabitEthernet 1/0/1 of Router A are forwarded out of
GigabitEthernet 1/0/4.
Figure 33 Network diagram
Configuration procedure
# Create basic ACL 2000, and configure a rule to match packets with source IP address 2.1.1.1.
<RouterA> system-view
[RouterA] acl number 2000
[RouterA-acl-basic-2000] rule permit source 2.1.1.1 0
[RouterA-acl-basic-2000] quit
# Create basic ACL 2001, and configure a rule to match packets with source IP address 2.1.1.2.
[RouterA] acl number 2001
[RouterA-acl-basic-2001] rule permit source 2.1.1.2 0
[RouterA-acl-basic-2001] quit
# Create a class named
classifier_1
, and use ACL 2000 as the match criterion in the class.
[RouterA] traffic classifier classifier_1
[RouterA-classifier-classifier_1] if-match acl 2000