Applying the QoS policy to an interface
A QoS policy can be applied to multiple interfaces. However, only one QoS policy can be applied to one direction (inbound or outbound) of an interface.
The QoS policy applied to the outgoing traffic on an interface does not regulate local packets. Local packets refer to 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.
QoS policies can be applied to the following interfaces:
Layer 2 Ethernet interfaces.
Layer 2 aggregate interfaces.
To apply a 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. You can apply a QoS policy only to the inbound direction of a Layer 2 aggregate interface. |