3-8Configuration PrerequisitesThe port priority of the port is determined.Configuration ProcedureFollow these steps to configure port priority:To do… Use the command… RemarksEnter system view system-view —Enter portviewinterface interface-typeinterface-numberEnter portview or portgroup view Enter portgroupviewport-group manualport-group-namePerform either of the two operations.The configuration performed in Ethernetinterface view applies to the current portonly. The configuration performed in portgroup view applies to all the ports in theport group.Configure port priority qos priority priority-value RequiredBy default, the port priority is 0.Configuration ExampleNetwork requirementsConfigure the port priority to 7.Configuration procedure# Enter system view. system-view# Configure port priority of GigabitEthernet1/0/1.[Sysname] interface GigabitEthernet 1/0/1[Sysname-GigabitEthernet1/0/1] qos priority 7Configuring Port Priority Trust ModeYou can configure the switch to trust the DSCP precedence of the received packets. In this case, theswitch searches the dscp-dot1p/dp/dscp mapping table for the corresponding precedence accordingto the DSCP precedence of the packets and marks the received packets with the precedence.Configuration PrerequisitesIt is determined to trust the DSCP precedence or the 802.1p precedence of received packets.