Applying the QoS policy
When configuring PBR, you can apply a QoS policy to the following occasions:
Applied globally—Affects the traffic sent or received on all ports.
•
Applied to an interface—Affects the traffic sent or received on the interface.
•
•
Applied to a VLAN—Affects the traffic sent or received on all ports in the VLAN.
NOTE:
A QoS policy used for PBR applies only to traffic received on all ports, on an interface, or on all ports in
a VLAN.
To apply the QoS policy globally:
Step
1.
Enter system view.
2.
Apply the QoS policy
globally.
To apply the QoS policy to an interface:
Step
1.
Enter system view.
2.
Enter interface view or port
group view.
3.
Apply the policy to the
interface or port group.
To apply the QoS policy to a VLAN:
Step
1.
Enter system view.
2.
Apply the QoS policy to
VLANs.
NOTE:
QoS policies cannot be applied to dynamic VLANs, for example, VLANs created by GVRP.
Command
system-view
qos apply policy policy-name global inbound
Command
system-view
•
Enter interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
qos apply policy policy-name
inbound
Command
system-view
qos vlan-policy policy-name vlan
vlan-id-list inbound
381
Remarks
N/A
Use either approach.
Settings in interface view take
effect on the current interface;
settings in port group view take
effect on all ports in the port group.
N/A
Remarks
N/A
N/A