Step
8.
Create a QoS policy and
enter QoS policy view.
9.
Associate the traffic class
with the traffic behavior in
the QoS policy.
10.
Return to system view.
11.
Apply the QoS policy.
12.
(Optional.) Display traffic
redirecting configuration.
Configuration example
Network requirements
As shown in
Switch A is connected to Switch B through two links. Switch A and Switch B are each connected to
•
other devices.
Ten-GigabitEthernet 1/0/2 of Switch A and Ten-GigabitEthernet 1/0/2 of Switch B belong to
•
VLAN 200.
Ten-GigabitEthernet 1/0/3 of Switch A and Ten-GigabitEthernet 1/0/3 of Switch B belong to
•
VLAN 201.
•
On Switch 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 Switch 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 an interface to meet the following requirements:
Packets with source IP address 2.1.1.1 received on Ten-GigabitEthernet 1/0/1 of Switch A are
•
forwarded to Ten-GigabitEthernet 1/0/2.
Packets with source IP address 2.1.1.2 received on Ten-GigabitEthernet 1/0/1 of Switch A are
•
forwarded to Ten-GigabitEthernet 1/0/3.
•
Other packets received on Ten-GigabitEthernet 1/0/1 of Switch A are forwarded according to the
routing table.
Command
qos policy policy-name
classifier classifier-name behavior
behavior-name [ insert-before
before-classifier-name ]
quit
•
•
•
•
display traffic behavior user-defined
[ behavior-name ]
Figure
21:
Applying the QoS policy to an interface
Applying the QoS policy to a VLAN
Applying the QoS policy globally
Applying the QoS policy to a control plane
76
Remarks
By default, no QoS policy
exists.
By default, no
class-behavior
association is configured
for a QoS policy.
N/A
Choose one of the
application destinations
as needed.
By default, a QoS policy
is not applied.
Available in any view.