257Step Command Remarks14. Apply the QoS policy.• (Method 1) To the outgoingtraffic of all ports:qos apply policy policy-nameglobal outbound• (Method 2) To the outgoingtraffic of a Layer 2 Ethernetinterface:a. Enter Layer 2 Ethernetinterface view:interface interface-typeinterface-numberb. Apply the QoS policy tothe outgoing traffic:qos apply policypolicy-name outbound• Configurations made in systemview take effect on all ports.• Configurations made in Layer 2Ethernet interface view takeeffect on the interface.For more information about the acl, rule, traffic classifier, if-match, traffic behavior, remark dot1p, qospolicy, classifier behavior, qos apply policy global, and qos apply policy commands, see ACL and QoSCommand Reference.Configuring ETS parametersETS provides committed bandwidth. To avoid packet loss caused by congestion, the device performs thefollowing tasks:• Uses ETS parameters to negotiate with the server adapter.• Controls the server adapter's transmission speed of a type of traffic.• Guarantees that the transmission speed is within the committed bandwidth of the interface.To configure ETS parameters, you must configure the 802.1p-to-local priority mapping and group-basedWRR queuing.Configuring the 802.1p-to-local priority mappingStep Command Remarks1. Enter system view. system-view N/A2. Enter 802.1p-to-local prioritymapping table view. qos map-table dot1p-lp N/A3. Configure the prioritymapping table to map an802.1p priority values to alocal precedence value.import import-value-list exportexport-valueFor information about the defaultpriority mapping tables, see ACL andQoS Configuration Guide.4. Return to system view. quit N/A5. Enter Ethernet interface view. interface interface-typeinterface-number N/A6. Configure the interface totrust the 802.1p prioritycarried in packets.qos trust dot1p By default, the port priority of theincoming port is trusted.