No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Applying the DiffServ Domain
Applying the DiffServ Domain
Context
You can bind a DiffServ domain to an inbound or outbound interface of packets to enable the device to implement mapping between packet priorities and PHBs/colors according to the mappings defined in the DiffServ domain.
Procedure
Apply a DiffServ domain to an Ethernet interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
(Optional) Run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Before switching the interface to Layer 3 mode, ensure that the interface has no Layer 2 configuration. Otherwise, the command cannot be executed.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is bound to the interface.
By default, the DiffServ domain default is applied to the interface.
If trust upstreamnone is configured on an interface, the system does not perform priority mapping for incoming packets.
(Optional) Run qos phb marking dscp enable
PHB-to-DSCP mapping is enabled for outgoing packets.
By default, PHB-to-DSCP mapping is not enabled for outgoing packets.
(Optional) Run qos phb marking 8021p disable
PHB-to-802.1p mapping is disabled for outgoing packets.
By default, PHB-to-802.1p mapping is enabled for outgoing packets.
Run commit
The configuration is committed.
Apply a DiffServ domain to a Layer 2 sub-interface.
Run system-view
The system view is displayed.
Run interfaceinterface-type interface-number.subnummode l2
The Layer 2 sub-interface view is displayed.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the Layer 2 sub-interface.
By default, the DiffServ domain default is applied to the Layer 2 sub-interface.
If trust upstreamnone is configured on an interface, the system does not perform priority mapping for incoming packets.
When a Layer 2 sub-interface uses QinQ encapsulation, only the DiffServ domain default is supported.