385
•
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.
Follow these steps to apply the QoS policy globally:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Apply the QoS policy globally
qos apply policy
policy-name
global
inbound
Required
Follow these steps to apply the QoS policy to an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter interface
view
interface
interface-type
interface-number
Enter
interface
view or port
group view
Enter port group
view
port-group manual
port-group-name
Use either command
Settings in interface view take
effect on the current interface;
settings in port group view take
effect on all ports in the port group.
Apply the policy to the interface or
port group
qos apply policy
policy-name
inbound
Required
Follow these steps to apply the QoS policy to a VLAN:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Apply the QoS policy to VLANs
qos vlan-policy
policy-name
vlan
vlan-id-list
inbound
Required
NOTE:
QoS policies cannot be applied to dynamic VLANs, for example, VLANs created by GVRP.
Displaying and maintaining PBR configuration
PBR configuration (using a PBR policy)
To do…
Use the command…
Remarks
Display the PBR routing information
display ip policy-based-route
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view