28
Priority mapping configuration examples
Priority trust mode and port priority configuration example
Network requirements
As shown in
, the IP precedence of Router A's traffic is 3, and the IP precedence of Router
B's traffic is 1.
Configure Router C to preferentially process packets from Router A to Server when GigabitEthernet
1/0/3 of Router C is congested.
Figure 6 Network diagram
Configuration procedure
1.
Method 1: Configure Router C to trust DSCP.
# Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to trust DSCP.
<RouterC> system-view
[RouterC] interface gigabitethernet 1/0/1
[RouterC-GigabitEthernet1/0/1] qos trust dscp
[RouterC-GigabitEthernet1/0/1] quit
[RouterC] interface gigabitethernet 1/0/2
[RouterC-GigabitEthernet1/0/2] qos trust dscp
[RouterC-GigabitEthernet1/0/2] quit
2.
Method 2: Configure Router C to trust port priority.
# Assign port priorities to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. Make sure that the
priority of GigabitEthernet 1/0/1 is higher than GigabitEthernet 1/0/2, and no trusted packet
priority type is configured on GigabitEthernet 1/0/1 or GigabitEthernet 1/0/2.
<RouterC> system-view
[RouterC] interface gigabitethernet 1/0/1
[RouterC-GigabitEthernet1/0/1] qos priority 3
[RouterC-GigabitEthernet1/0/1] quit
[RouterC] interface gigabitethernet 1/0/2
[RouterC-GigabitEthernet1/0/2] qos priority 1
[RouterC-GigabitEthernet1/0/2] quit
GE
1/0
/1
IP p
rec
ede
nce
3
GE
1/0
/2
IP
pr
ec
ed
en
ce
1
GE
1/0
/1
GE
1/0
/2