398
# Create traffic class
class
, and define a match criterion to match all packets.
[Switch] traffic classifier class
[Switch-classifier-class] if-match any
[Switch-classifier-class] quit
# Create traffic behavior
for_userb
, and configure a CAR action in traffic behavior database. Set
the CIR to 2000 kbps.
[Switch] traffic behavior for_userb
[Switch-behavior-for_userb] car cir 2000
[Switch-behavior-for_userb] quit
# Create QoS policy
for_userb
, and associate traffic class
class
with traffic behavior
for_userb
.
[Switch] qos policy for_userb
[Switch-qospolicy-for_userb] classifier class behavior for_userb
[Switch-qospolicy-for_userb] quit
4.
Configure a user profile for User B, and apply the QoS policy:
# Create user profile
userb
.
[Switch] user-profile userb
# Apply the QoS policy to the incoming traffic of the switch.
[Switch-user-profile-userb] qos apply policy for_userb inbound
[Switch-user-profile-userb] quit
5.
Configure a QoS policy to limit the incoming traffic rate on User C:
# Create traffic behavior
for_userc
, and configure a CAR action in traffic behavior database. Set
the CIR to 4000 kbps.
[Switch] traffic behavior for_userc
[Switch-behavior-for_userc] car cir 4000
[Switch-behavior-for_userc] quit
# Create QoS policy
for_userc
, and associate traffic class
class
with traffic behavior
for_userc
.
[Switch] qos policy for_userc
[Switch-qospolicy-for_userc] classifier class behavior for_userc
[Switch-qospolicy-for_userc] quit
6.
Configure a user profile for User C, and apply the QoS policy:
# Create user profile
userc
.
[Switch] user-profile userc
# Apply the QoS policy to the outgoing traffic of the switch.
[Switch-user-profile-userc] qos apply policy for_userc outbound
[Switch-user-profile-userc] quit
7.
Add local users:
# Add local user
usera
.
[Switch] local-user usera class network
New local user added.
# Set the password of local user
usera
to
a12345
in plain text.
[Switch-luser-network-usera] password simple a12345
# Specify the service type as
lan-access
for
usera
.
[Switch-luser-network-usera] service-type lan-access
# Configure the authorization user profile as
usera
.
[Switch-luser-network-usera] authorization-attribute user-profile usera