Step
9.
Associate the class with the
traffic behavior in the QoS
policy.
10.
Return to system view.
11.
Apply the QoS policy.
Redirect-to-next hop configuration example
Network requirements
As shown in
•
Device A is connected to Device through two links. At the same time, Device A and Device B are
each connected to other devices.
GigabitEthernet 1/0/2 of Device A and GigabitEthernet 1/0/2 of Device B belong to VLAN 200.
•
Ethernet 1/3 of Device A and Ethernet 1/3 of Device B belong to VLAN 201.
•
On Device A, the IP address of VLAN-interface 200 is 200.1.1.1/24, and that of VLAN-interface
•
201 is 201.1.1.1/24.
On Device B, the IP address of VLAN-interface 200 is 200.1.1.2/24, and that of VLAN-interface
•
201 is 201.1.1.2/24.
Configure the actions of redirecting traffic to the next hop to implement policy-based routing and satisfy
the following requirements:
Packets with source IP address 2.1.1.1 received on GigabitEthernet 1/0/1 of Device A are
•
forwarded to IP address 200.1.1.2.
•
Packets with source IP address 2.1.1.2 received on GigabitEthernet 1/0/1 of Device A are
forwarded to IP address 201.1.1.2.
Other packets received on GigabitEthernet 1/0/1 of Device A are forwarded according to the
•
routing table.
Figure 20 Network diagram
Configuration procedure
# Create basic ACL 2000, and configure a rule to match packets with source IP address 2.1.1.1.
<DeviceA> system-view
[DeviceA] acl number 2000
Figure
20, the network is described as follows:
Command
classifier tcl-name behavior behavior-name
quit
•
Applying the QoS policy to an interface
•
Applying the QoS policy to a VLAN
•
Applying the QoS policy globally
60
Remarks
N/A
N/A
Choose one
application
destination as
needed.