34Figure 8 Network diagram for priority trust mode configurationConfiguration procedure# Assign port priority to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. Make sure that the priorityof GigabitEthernet 1/0/1 is higher than that of GigabitEthernet 1/0/2, and no trusted packet prioritytype is configured on GigabitEthernet 1/0/1 or GigabitEthernet 1/0/2. 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] quitPriority mapping table and priority marking configurationexampleNOTE:For more information about priority marking, see the chapter “Priority marking configuration.”Network requirementsAs shown in Figure 9, the enterprise network of a company interconnects all departments through Device.The network is described as follows:• The marketing department connects to GigabitEthernet 1/0/1 of Device, which sets the 802.1ppriority of traffic from the marketing department to 3.• The R&D department connects to GigabitEthernet 1/0/2 of Device, which sets the 802.1p priorityof traffic from the R&D department to 4.• The management department connects to GigabitEthernet 1/0/3 of Device, which sets the 802.1ppriority of traffic from the management department to 5.Configure port priority, 802.1p-to-local priority mapping table, and priority marking to implement theplan as described in Table 3.