29
Figure 6 Network diagram
Configuration procedure
# Assign port priority to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. Make sure the priority of
GigabitEthernet 1/0/1 is higher than that of GigabitEthernet 1/0/2, and no trusted packet priority type
is configured on GigabitEthernet 1/0/1 or GigabitEthernet 1/0/2.
<SwitchC> system-view
[SwitchC] interface GigabitEthernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] qos priority 3
[SwitchC-GigabitEthernet1/0/1] quit
[SwitchC] interface GigabitEthernet 1/0/2
[SwitchC-GigabitEthernet1/0/2] qos priority 1
[SwitchC-GigabitEthernet1/0/2] quit
Priority mapping table and priority marking configuration
example
Network requirements
As shown in Figure 7:
• The Marketing department connects to GigabitEthernet 1/0/1 of the switch, which sets the
802.1p priority of traffic from the Marketing department to 3.
• The R&D department connects to GigabitEthernet 1/0/2 of the switch, which sets the 802.1p
priority of traffic from the R&D department to 4.
• The Management department connects to GigabitEthernet 1/0/3 of the switch, which sets the
802.1p priority of traffic from the Management department to 5.
Configure port priority, 802.1p-to-local mapping table, and priority marking to implement the plan as
described in Table 6.
Table 6
Configuration plan
Traffic
destination
Traffic priority order
Queuing plan
Traffic source
Output
queue
Queue
priority
Public servers
R&D department >
Management
department > Marketing
R&D department 6 High
Management
department
4 Medium
Internet
Switch A
Switch C
Server
Switch B
GE1/0/3
G
E
1
/
0
/
1
G
E
1
/
0
/
2