Apply the QoS policy, that is, to define the occasion to which the policy routing applies.
Configuring a QoS Policy
Follow these steps to configure traffic redirecting:
To do...
Enter system view
Create a class and enter
class view
Configure the match criteria
Exit class view
Create a behavior and enter
behavior view
Configure a traffic
redirecting action
Exit behavior view
Create a policy and enter
policy view
Associate the class with the
traffic behavior in the QoS
policy
To implement policy routing successfully, ensure that the next hop address specified in the redirect
action exist and the outgoing interface is not a tunnel interface. If you fail to do that, the matching traffic
will be dropped.
Applying the QoS Policy
When configuring policy routing, you can apply a QoS policy to different occasions:
Applied globally, the policy takes effect on the traffic sent or received on all ports.
Applied to an interface, the policy takes effect on the traffic sent or received on the interface.
Applied to a VLAN, the policy takes effect on the traffic sent or received on all ports in the VLAN.
A QoS policy used for policy routing applies to only traffic received on all ports/an interface/all ports in a
VLAN.
Use the command...
system-view
traffic classifier tcl-name [ operator
{ and | or } ]
if-match match-criteria
quit
traffic behavior behavior-name
redirect next-hop { ipv4-add1
[ ipv4-add2 ] | ipv6-add1
[ interface-type interface-number ]
[ ipv6-add2 [ interface-type
interface-number ] ] }
quit
qos policy policy-name
classifier tcl-name behavior
behavior-name
1-2
Remarks
—
—
—
—
Required
Optional
—
—
—