3-5
[Sysname-maptbl-dot1p-lp] import 6 7 export 3
Configuring the Priority for a Port
Port priority is in the range of 0 to 7. You can set the port priority as needed.
Configuration Prerequisites
You need to decide on a priority for the port.
Configuration Procedure
Follow these steps to configure port priority:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter
interface
view
interface
interface-type
interface-number
Enter
interface
view or port
group view
Enter port
group view
port-group manual
port-group-name
Use either command
Settings in interface view (Ethernet
or WLAN-ESS) take effect on the
current interface; settings in port
group view take effect on all ports in
the port group.
Configure a priority for the
port
qos priority priority-value
Required
The default port priority is 0.
Configuration Example
Network requirements
Set the port priority of port GigabitEthernet 1/0/1 to 7.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Set the priority of GigabitEthernet 1/0/1 to 7.
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos priority 7
Configuring the Trusted Precedence Type for a Port
You can configure whether to trust the priority of packets. On a device supporting port trusted
precedence type, the priority mapping process for packets is shown in
Priority Mapping Overview
.
You can configure one of the following trusted precedence types for a port:
z
dot1p
: Trusts the 802.1p precedence of the received packets and uses the 802.1p precedence for
mapping.