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
To map priorities of incoming or outgoing packets to PHBs and colors based on the mappings defined in a DiffServ domain, apply the DiffServ domain to the VLAN, BD or interface of the packets. The system then maps priorities of packets to PHBs and colors based on the mappings in the DiffServ domain.
Procedure
Apply a DiffServ domain to a VLAN.
Run system-view
The system view is displayed.
Run vlanvlan-id
The VLAN view is displayed.
(Optional) Run qos phb marking dscp enable
Mapping from PHBs to DSCP priorities is enabled for outgoing packets.
By default, mapping from PHBs to DSCP priorities is disabled for outgoing packets.
The CE-L48GT-EA, CE-L48GT-EC, CE-L48GS-EA, CE-L48GS-EC, CE-L24XS-BA, CE-L24XS-EA, CE-L48XS-BA, CE-L48XS-EA and CE-L24LQ-EA cards do not support this command in the VLAN view.
By default, the DiffServ domain default is used for priority mapping in a VLAN. A maximum of three different DiffServ domains including the DiffServ domain default can be applied to different VLANs, and the same DiffServ domain can be applied to different VLANs.
The device processes green and yellow packets based on mapping rules for green packets, and processes red packets based on the mapping rules for red packets.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the VLAN.
By default, the DiffServ domain default is applied to the VLAN.
If the trust upstreamnone command is executed in the VLAN, the system does not perform priority mapping for incoming packets in the VLAN.
When the DiffServ domain is applied to an MUX VLAN or super-VLAN, the device can only map Layer 3 traffic according to 802.1p priorities in the DiffServ domain.
Run quit
The system view is displayed.
(Optional) Run qos phb marking 8021p disable
Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.
By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.
Run commit
The configuration is committed.
Apply a DiffServ domain to a Layer 2 Ethernet interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
Run trust upstreamds-domain-name
A DiffServ domain is applied to the interface.
By default, the DiffServ domain default is applied to the interface.
Run commit
The configuration is committed.
Apply a DiffServ domain to a Layer 3 Ethernet interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
Run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The command cannot be executed on an interface that has any Layer 2 configuration. To configure this interface to work in Layer 3 mode, delete the Layer 2 configuration and run the undo portswitch command.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the interface.
By default, the DiffServ domain default is applied to the interface.
If the trust upstreamnone command is executed on an interface, the system does not perform priority mapping for incoming packets.
Run quit
Return to the system view.
(Optional) Run qos phb marking dscp enable
Global mapping from PHBs to DSCP priorities is enabled for outgoing packets.
By default, global mapping from PHBs to DSCP priorities is disabled for outgoing packets.
(Optional) Run qos phb marking 8021p disable
Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.
By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.
Run commit
The configuration is committed.
Apply a DiffServ domain to a Layer 3 sub-interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number.sub-interface-number
The Layer 3 sub-interface view is displayed.
By default, an Ethernet interface works in Layer 2 mode. Before creating a Layer 3 sub-interface, run the undo portswitch command to switch the Ethernet interface to Layer 3 mode.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the Layer 3 sub-interface.
By default, the DiffServ domain default is applied to the Layer 3 sub-interface.
If the trust upstreamnone command is executed on a Layer 3 sub-interface, the system does not perform priority mapping for incoming packets.
Run quit
Return to the system view.
(Optional) Run qos phb marking dscp enable
Global mapping from PHBs to DSCP priorities is enabled for outgoing packets.
By default, global mapping from PHBs to DSCP priorities is disabled for outgoing packets.
(Optional) Run qos phb marking 8021p disable
Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.
By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.
Run commit
The configuration is committed.
Apply a DiffServ domain to a VLANIF interface.
Run system-view
The system view is displayed.
Run interfacevlanifvlan-id
The VLANIF interface view is displayed.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the interface.
By default, the DiffServ domain default is applied to the interface.
If the trust upstreamnone command is executed on an interface, the system does not perform priority mapping for incoming packets.
Run quit
Return to the system view.
(Optional) Run qos phb marking dscp enable
Global mapping from PHBs to DSCP priorities is enabled for outgoing packets.
By default, global mapping from PHBs to DSCP priorities is disabled for outgoing packets.
(Optional) Run qos phb marking 8021p disable
Global mapping from PHBs to 802.1p priorities is disabled for outgoing packets.
By default, global mapping from PHBs to 802.1p priorities is enabled for outgoing packets. After global mapping from PHBs to 802.1p priorities is disabled for outgoing packets, the 802.1p priority in IPv4 packets is changed to 2 and the 802.1p priority in IPv6 packets is changed to 3 during Layer 3 forwarding.
Run commit
The configuration is committed.
After an interface joins a VLAN, if the trust command is configured on the interface to trust packet priorities, the DiffServ domain applied to the interface takes effect. If the trust command is not configured on the interface to trust packet priorities, the DiffServ domain applied to a VLAN takes effect.
A Diffserv Domain can be created only in the Admin-VS among all VSs in port mode. The Diffserv Domain created in the Admin-VS can be applied to a VLAN and VLANIF interface. In a VS in port group mode, only the Diffserv Domain created in this VS can be applied to a VLAN and VLANIF interface.
Global mapping from PHBs to DSCP or 802.1p priorities in the outbound direction can be enabled only in the Admin-VS among all VSs in port mode. Global mapping from PHBs to DSCP or 802.1p priorities in the outbound direction enabled in the Admin-VS also takes effect in other VSs in port mode. Global mapping from PHBs to DSCP or 802.1p priorities in the outbound direction enabled in a VS in port group mode only takes effect in this VS.
Apply a DiffServ domain to a VBDIF interface.
Run system-view
The system view is displayed.
Run interface vbdifbd-id
The VBDIF interface view is displayed.
By default, no VBDIF interface is created on the device. You must run the bridge-domain command to create a bridge domain (BD), and then run the interface vbdif command to create a VBDIF interface and enter the VBDIF interface view.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the VBDIF interface.
By default, the DiffServ domain default is applied to the VBDIF interface.
If the trust upstreamnone command is executed on a VBDIF interface, the system does not perform priority mapping for incoming packets on the VBDIF interface.
Run commit
The configuration is committed.
Apply a DiffServ domain to a BD.
Run system-view
The system view is displayed.
Run bridge-domainbd-id
The BD view is displayed.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the BD.
By default, the DiffServ domain default is applied to the BD.
If the trust upstreamnone command is executed on a BD, the system does not perform priority mapping for incoming packets on the BD.
If a DiffServ domain is applied to a BD and a Layer 2 sub-interface bound to the BD on the CE12800, the system performs mapping based on the mapping defined in the DiffServ domain that is applied to the Layer 2 sub-interface.
If a DiffServ domain is applied to a BD and a VLAN bound to the BD on the CE12800, the system performs mapping based on the mapping defined in the DiffServ domain that is applied to the VLAN.
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 the trust upstreamnone command is executed on a Layer 2 sub-interface, the system does not perform priority mapping for incoming packets on the Layer 2 sub-interface.
When a Layer 2 sub-interface uses QinQ encapsulation, only the DiffServ domain default is supported.
Run commit
The configuration is committed.
Apply a DiffServ domain to a VPN instance.
Run system-view
The system view is displayed.
Run ip vpn-instancevpn-instance-name
A VPN instance is created and its view is displayed.
Run trust upstream { ds-domain-name | none }
A DiffServ domain is applied to the VPN instance.
By default, the DiffServ domain default is applied to the VPN instance.
If the trust upstreamnone command is executed on a VPN instance, the system does not perform priority mapping for incoming packets on the VPN instance.