Applying a QoS policy to an interface

By applying a QoS policy to an interface, you can mirror the traffic in the specified direction of the interface. A policy can be applied to multiple interfaces. In one direction (inbound or outbound) of an interface, only one policy can be applied.

In a VXLAN network, the type of traffic that can be mirrored in the outbound direction of an interface depends on the VXLAN hardware resource allocation mode of the device:

To apply a QoS policy to the outbound traffic of an interface, make sure the traffic behavior used by the policy contains only traffic mirroring actions. If non-traffic-mirroring actions are configured, all actions configured in the traffic behavior become invalid.

The device does not support mirroring outbound traffic of aggregate interfaces.

To apply a QoS policy to an interface:

Step

Command

1. Enter system view.

system-view

2. Enter interface view.

interface interface-type interface-number

3. Apply a policy to the interface.

qos apply policy policy-name { inbound | outbound }