2-5 
Description 
Use the qos-profile command to create a QoS profile and enter QoS profile view. If the QoS profile 
already exists, this command leads you to the corresponding QoS profile view.  
Use the undo qos-profile command to remove a QoS profile.  
A QoS profile currently applied to a port cannot be removed or modified. To remove or modify a QoS 
profile already applied to a port, you must remove the QoS profile from the port first.  
z  If the QoS profile is applied to the port manually, use the undo apply qos-profile command to 
remove the QoS profile from the port.  
z  If the QoS profile is applied to the port dynamically, log off the user connected to the port to remove 
the QoS profile from the port.  
Example 
# Create a QoS profile named a123.  
<Sysname> system-view 
System View: return to User View with Ctrl+Z. 
[Sysname] qos-profile a123 
[Sysname-qos-profile-a123] 
qos-profile port-based 
Syntax 
qos-profile port-based 
undo qos-profile port-based 
View 
Ethernet port view 
Parameter 
None 
Description 
Use the qos-profile port-based command to configure the QoS profile application mode on a 
port to be port-based. 
Use the undo qos-profile port-based command to restore the default.  
By default, the application mode of a QoS profile is user-based. 
Note that: 
z  If the 802.1x authentication is MAC-based, you need to configure the QoS profile application mode 
to be user-based. 
z  If the 802.1x authentication is port-based, you need to configure the QoS profile application mode 
to be port-based. 
Example 
# Configure the QoS profile application mode on Ethernet 1/0/1 to be port-based.  
<Sysname> system-view 
System View: return to User View with Ctrl+Z.