Task
Display priority map configuration.
Display the trusted packet priority type on a
port.
Priority mapping configuration examples
Priority trust mode configuration example
Network requirements
As shown in
•
The IP precedence of traffic from Device A to Device C is 3.
•
The IP precedence of traffic from Device B to Device C is 1.
Configure Device C to preferentially process packets from Device A to the server when
GigabitEthernet 1/0/3 of Device C is congested.
Figure 6 Network diagram
Device A
Device B
Configuration procedure
# Assign port priority to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. Make sure the following
requirements are met:
•
The priority of GigabitEthernet 1/0/1 is higher than that of GigabitEthernet 1/0/2.
•
No trusted packet priority type is configured on GigabitEthernet 1/0/1 or GigabitEthernet 1/0/2.
<DeviceC> system-view
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] qos priority 3
[DeviceC-GigabitEthernet1/0/1] quit
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] qos priority 1
[DeviceC-GigabitEthernet1/0/2] quit
Figure
6:
Internet
GE1/0/3
Device C
Command
display qos map-table [ dot1p-lp | dscp-lp | lp-dot1p |
lp-dscp ]
display
qos
trust
interface-number ]
Server
40
interface
[
interface-type