19
command to configure an Ethernet port as a Layer 2 or Layer 3 interface (see Layer 2—LAN
Switching Configuration Guide).
A QoS policy can be applied to multiple interfaces, but only one QoS policy can be applied in one
direction (inbound or outbound) of an interface.
The QoS policy applied to the outgoing traffic on an interface does not regulate local packets, which
are critical protocol packets sent by the local system for operation maintenance. The most common
local packets include link maintenance, routing, LDP, RSVP, and SSH packets.
To apply the QoS policy to an interface:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type interface-number
N/A
3. Apply the QoS policy to
the interface.
qos apply policy
policy-name {
inbound
|
outbound
}
By default, no QoS policy
is applied to an interface.
NOTE:
If both packet filtering with the permit statement and QoS policies are configured on an interface,
the car and filter actions in the QoS policies do not take effect. For information about packet
filtering, see "Configuring ACLs."
Applying the QoS policy to a VLAN
You can apply a QoS policy to a VLAN to regulate traffic of the VLAN.
QoS policies cannot be applied to dynamic VLANs.
To apply the QoS policy to a VLAN:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Apply the QoS policy to
VLANs.
qos vlan-policy
policy-name
vlan
vlan-id-list {
inbound
|
outbound
}
By default, no QoS policy is applied
to a VLAN.
Applying the QoS policy globally
You can apply a QoS policy globally to the inbound or outbound direction of all ports.
To apply the QoS policy globally:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Apply the QoS policy
globally.
qos apply policy
policy-name
global
{
inbound
|
outbound
}
By default, no QoS policy is applied
globally.
Applying the QoS policy to a control plane
A switch provides the data plane and the control plane.