The trust upstream vlan command binds a Layer 2 interface to a DS domain and enables the Layer 2 interface to support BA classification and to change the priorities of IP and MPLS packets.
The undo trust upstream vlan command cancels the configuration.
By default, no DS domain is bound to a Layer 2 interface.
Parameter | Description | Value |
---|---|---|
5p3d | Specify 5p3d domain. |
- |
ds-domain-name | Specifies the name of a DS domain. A DS domain consists of the DiffServ (DS) nodes that adopt the same service policy and Per-Hop Behavior (PHB) collection. |
The value is a string of 1 to 48 case-sensitive characters. |
default | Specify default domain. |
- |
inbound | Inbound. |
- |
outbound | Outbound. |
- |
vlan-id1 | Specifies a start VLAN ID. |
The value is an integer ranging from 1 to 4094. |
to vlan-id2 | Specifies an end VLAN ID. |
The value is an integer ranging from 1 to 4094. vlan-id2 must be greater than vlan-id1. |
vpn-mode | VPN mode. |
- |
Usage Scenario
To implement a simple traffic classification-based QoS policy, for example, to change the priorities of IP and MPLS packets, on a Layer 2 interface, run the trust upstream vlan command to bind the Layer 2 interface to a DS domain and enable the Layer 2 interface to map the priorities of packets.
The command trust upstream can take effect only on the outbound interface traffic and the inbound interface traffic by specifying the parameter inbound and outbound. If the inbound parameter is specified, the priority fields, dscp, exp, 8021p, configured in the DS domain is mapped to the internal priorities (queue, color) for the inbound interface traffic. If the outbound parameter is specified, the internal priorities (queue, color) configured in the DS domain is mapped to the priority fields, dscp, exp, 8021p, for the outbound interface traffic.Configuration Impact
The trust upstream vlan command is mutually exclusive to the qos phb enable and qos default-service-class commands on a Layer 2 interface.
Precautions
Simple traffic classification cannot be configured on a physical interface that has been added to an Eth-trunk interface.
<HUAWEI> system-view [~HUAWEI] diffserv domain ds2 [*HUAWEI-dsdomain-ds2] quit [~HUAWEI] interface GigabitEthernet0/1/24 [*HUAWEI-GigabitEthernet0/1/24] portswitch [*HUAWEI-GigabitEthernet0/1/24] port trunk allow-pass vlan 2 [*HUAWEI-GigabitEthernet0/1/24] trust upstream ds2 inbound vlan 2