162
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a user profile, and enter its
view
user-profile
profile-name
Required
You can use the command to
enter the view of an existing user
profile.
Configuring a user profile
After a user profile is created, apply a QoS policy in user profile view to implement restrictions on online
users. The QoS policy takes effect when the user profile is enabled and a user using the user profile goes
online.
Follow these steps to configure user profile:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter user profile view
user-profile
profile-name
Required
Apply the QoS policy
qos apply policy
policy-name
{
inbound
|
outbound
}
Required
The
inbound
keyword applies the QoS policy to
incoming traffic of the switch (traffic sent by
online users). The
outbound
keyword applies the
QoS policy to outgoing traffic of the switch
(traffic sent to online users).
NOTE:
If a user profile is enabled but not used by any online user, you can edit only the content of the ACL that is
referenced by the QoS policy in the profile. If the user profile is being used by online users, you cannot edit any
configuration in the QoS policy.
The QoS policies that can be applied to user profiles support only the
remark
,
car
, and
filter
actions.
Do not apply an empty policy in user profile view because a user profile with an empty policy applied cannot be
enabled.
Enabling a user profile
Enable a user profile so that configurations in the profile can be applied by the device to restrict user
behaviors. If the device detects that the user profile is disabled, the device denies the associated user
even the user has been verified by the authentication server.
Follow these steps to enable a user profile:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable a user profile
user-profile
profile-name
enable
Required
A user profile is disabled by
default.