Usage Scenario
To achieve uniform scheduling of incoming traffic flows on multiple interfaces, you need to implement traffic management by user levels. Profile-based HQoS, by comparison, allows traffic on multiple interfaces to enter an SQ for scheduling. It implements uniform scheduling of traffic on multiple interfaces by defining a QoS profile and applying the profile to different interfaces. In addition, an identity attribute allows traffic from different VLANs on an interface to share an SQ bandwidth or individually use an SQ bandwidth.
To apply the qos-profile vlan command on a sub-interface, the sub-interface must be encapsulated with dot1q termination. To apply a QoS profile to inconsecutive VLANs, you can run the qos-profile { inbound | outbound } command to apply simplified configurations.
If an interface is already configured with the car command, or the user-queue command, or layer-2 traffic suppression commands, and these commands are configured for the same direction as the direction of the QoS profile, you need to delete the configured commands before being able to configure the qos-profile vlan command to apply the QoS profile to the interface.
Precautions
If the direction configured in the QoS profile is different from the direction to which the QoS profile is applied on the interface, the profile does not take effect. If directionless traffic control is configured in the QoS profile, the QoS profile takes effect on traffic in the direction that is specified when the QoS profile is applied to the interface.