23Applying the QoS policy to an interfaceA policy can be applied to multiple interfaces, but only one policy can be applied in inbound directionof an interface.To apply the QoS policy to an interface:Step Command Remarks1. Enter system view. system-view N/A2. Enter interface view orport group view.• Enter interface view:interface interface-typeinterface-number• Enter port group view:port-group manual port-group-nameUse either command.Settings in interface view takeeffect on the current interface.Settings in port group view takeeffect on all ports in the port group.3. Apply the policy to theinterface or port group. qos apply policy policy-name inbound N/AApplying the QoS policy to online usersYou can apply a QoS policy to multiple online users. In one direction of each online user, only one policycan be applied. To modify a QoS policy already applied in a certain direction, remove the QoS policyapplication first.Configuration restrictions and guidelines• The QoS policy applied to a user profile supports only the remark, car, and filter actions.• Do not apply a null policy to a user profile. The user profile using a null policy cannot be activated.• The authentication methods available for online users include 802.1X and Portal.Configuration procedureTo apply the QoS policy to online users:Step Command Remarks1. Enter system view. system-view N/A2. Enter user profileview. user-profile profile-nameThe configuration made in user profile view takeseffect when the user profile is activated and theusers of the user profile are online.For more information about user profiles, seeSecurity Configuration Guide.3. Apply the QoSpolicy.qos apply policy policy-nameinboundUse the inbound keyword to apply the QoS policyto the incoming traffic of the device (traffic sent bythe online users).4. Return to systemview. quit N/A5. Activate the userprofile.user-profile profile-nameenable By default, a user profile is inactive.