By default, port priority is trusted and the priority of a port is 0.
After you execute the priority trust command on a port, the 802.1p priority of each inbound
802.1q-tagged packet is used to identify the matching local precedence for the packet (in the
802.1p-precedence-to-local precedence mapping table). Then, the packet is assigned to the output
queue corresponding to the local precedence.
If the priority command, the priority trust command, and the undo priority command are configured
on the same port, the command configured the last applies.
Related commands: priority.
Examples
# Configure the switch to trust the 802.1p priority of 802.1q-tagged packets on Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] priority trust
protocol-priority protocol-type
Syntax
protocol-priority protocol-type protocol-type { ip-precedence ip-precedence | dscp dscp-value }
undo protocol-priority protocol-type protocol-type
View
System view
Parameters
protocol-type protocol-type: Specifies the protocol type, which could be Telnet, SNMP, ICMP, or
OSPF.
ip-precedence ip-precedence: Specifies an IP precedence in digits for the specified protocol, in the
range 0 to 7. Alternatively, you can specify the IP precedence in words; available keywords are listed in
Table
1-6.
Table 1-6 IP precedence values in words and in digits
IP precedence (in words)
routine
priority
immediate
flash
flash-override
critical
internet
IP precedence (in digits)
0
1
2
3
4
5
6
1-14