1-14
# Configure to trust the DSCP precedence of the received packets.
<Sysname> system-view
[Sysname] priority trust
[Sysname] priority-trust dscp
# Configure to trust the 802.1p priority of the received packets.
Approach I:
<Sysname> system-view
[Sysname] priority trust
Approach II:
<Sysname> system-view
[Sysname] priority-trust cos
Configuring Priority Mapping
You can modify the CoS-precedence-to-local-precedence and DSCP-precedence-to-local-precedence
mapping tables as required to mark packets with different priorities.
Configuration prerequisites
The target CoS-precedence-to-local-precedence and DSCP-precedence-to-local-precedence mapping
tables are determined.
Configuration procedure
Table 1-10
Configure CoS-precedence-to-local-precedence mapping table
Operation
Command
Description
Enter system view
system-view
—
Configure
CoS-precedence-to-local-p
recedence mapping table
qos
cos-local-precedence-map
cos0-map-local-prec cos1-map-local-prec
cos2-map-local-prec cos3-map-local-prec
cos4-map-local-prec cos5-map-local-prec
cos6-map-local-prec
cos7-map-local-prec
Required
Table 1-11
Configure DSCP-precedence-to-local-precedence mapping table
Operation
Command
Description
Enter system view
system-view
—
Configure
DSCP-precedence-to-local-prece
dence mapping table
qos
dscp-local-precedence-map
dscp-list :
local-precedence
Required
Configuration example
z
Configure the CoS-precedence-to-local-precedence mapping relationship as follows: 0 to 0, 1 to 0,
2 to 1, 3 to 1, 4 to 2, 5 to 2, 6 to 3, and 7 to 3.
z
Display the configuration.
Configuration procedure:
<Sysname> system-view