R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)
30
Port priority configuration example
Network requirements
As shown in Figure 5, the IP precedence of traffic from Router A to Router C is 3, and the IP precedence
of traffic from Router B to Router C is 1.
Configure Router C to preferentially process packets from Router A to the server when GigabitEthernet
2/1/2 of Router C is congested.
Figure 5 Network diagram
Configuration procedure
# Assign port priority to GigabitEthernet 2/1/0 and GigabitEthernet 2/1/1. Make sure the priority of
GigabitEthernet 2/1/0 is higher than that of GigabitEthernet 2/1/1, and no trusted packet priority type
is configured on GigabitEthernet 2/1/0 or GigabitEthernet 2/1/1.
<RouterC> system-view
[RouterC] interface gigabitethernet 2/1/0
[RouterC-GigabitEthernet2/1/0] qos priority 3
[RouterC-GigabitEthernet2/1/0] quit
[RouterC] interface gigabitethernet 2/1/1
[RouterC-GigabitEthernet2/1/1] qos priority 1
[RouterC-GigabitEthernet2/1/1] quit
Priority mapping table and priority marking
configuration example
Network requirements
As shown in Figure 6:
• The marketing department connects to GigabitEthernet 2/1/0 of the router, which sets the 802.1p
priority of traffic from the marketing department to 3.
G
E
2
/
1
/
0
I
P
p
r
e
c
e
d
e
n
c
e
3
G
E
2
/
1
/
1
I
P
p
r
e
c
e
d
e
n
c
e
1
G
E
2
/
1
/
0
G
E
2
/
1
/
1