R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide

436
Figure 119 Network diagram
Configuration procedure
# Configure ACL 2000.
<RouterA> system-view
[RouterA] acl number 2000
[RouterA-acl-basic-2000] rule 0 permit source any
[RouterA-acl-basic-2000] quit
# Define a match criterion for the class a to match ACL 2000.
[RouterA] traffic classifier a
[RouterA-classifier-a] if-match acl 2000
[RouterA-classifier-a] quit
# Configure the action of redirecting traffic to GigabitEthernet 2/0/3 for the behavior a.
[RouterA] traffic behavior a
[RouterA-behavior-a] redirect interface gigabitethernet2/0/3
[RouterA-behavior-a] quit
# Associate the class a with the behavior a in the QoS policy a.
[RouterA] qos policy a
[RouterA-qospolicy-a] classifier a behavior a
[RouterA-qospolicy-a] quit
# Apply the QoS policy a to the inbound direction of GigabitEthernet 2/0/1.
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] qos apply policy a inbound
Verifying the configuration
After completing the configuration, verify that when Router A receives packets with destination IP address
201.1.1.2, it forwards the packets to Router C instead of Router B.
IPv6 QoS policy routing configuration example
Network requirements
As shown in 0, configure a QoS policy, so that all packets received on GigabitEthernet 2/0/1 of Router
A are forwarded out of GigabitEthernet 2/0/3 of Router A.