1-14
Follow these steps to configure a port to trust 802.1p precedence:
To do… Use the command… Remarks
Enter system view
system-view
—
Enter Ethernet port
view
interface interface-type
interface-number
—
Configure to trust
802.1p precedence
priority-trust cos
Required
By default, port priority is trusted.
3) Configuring a port to trust DSCP value of traffic
Follow these steps to configure a port to trust DSCP value of traffic:
To do… Use the command… Remarks
Enter system view
system-view
—
Enter Ethernet port
view
interface interface-type
interface-number
—
Configure to trust
DSCP values
priority-trust dscp
Required
By default, port priority is trusted.
Configuration examples
# Configure trusting port priority on GigabitEthernet 1/0/1 and set the priority of GigabitEthernet 1/0/1 to
7.
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] priority 7
# Configure trusting 802.1p precedence on GigabitEthernet 1/0/2.
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/2
[Sysname-GigabitEthernet1/0/2] priority-trust cos
# Configure trusting DSCP values on GigabitEthernet 1/0/3.
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/3
[Sysname-GigabitEthernet1/0/3] priority-trust dscp
Configuring Priority Mapping
You can modify the CoS-precedence-to-other-precedence, and
DSCP-precedence-to-other-precedence mapping tables as required to mark packets with different
priorities.
Configuration prerequisites
The target CoS-precedence-to-other-precedence, and DSCP-precedence-to-other-precedence
mapping tables have been determined.