The trust 8021p vlan command enables 802.1p priority-based simple traffic classification on a Layer 2 interface.
The undo trust 8021p vlan command cancels the configuration.
By default, 802.1p-based BA classification is not configured on a Layer 2 interface.
Parameter | Description | Value |
---|---|---|
8021p | Specifies the 802.1p field of packets which is need to map to the internal priorities. |
- |
inner-8021p | Specifies the inner-8021p field of packets which is need to map to the internal priorities. |
- |
outer-8021p | Specifies the outer-8021p field of packets which is need to map to the internal priorities. |
- |
inbound | Inbound. |
- |
outbound | Outbound. |
- |
vlan-id1 | Specifies a start VLAN ID. |
The value is an integer in the range 1 to 4094. |
to vlan-id2 | Specifies an end VLAN ID. |
The value is an integer in the range 1 to 4094. vlan-id2 must be greater than vlan-id1. |
Usage Scenario
The trust 8021p vlan command is used to configure a simple traffic classification-based QoS policy on a Layer 2 interface.
For the inbound interface traffic, the command is executed when the 802.1p field of packets is need to map to the internal priorities. For the outbound interface traffic, the command is executed when 802.1p field of packets is need to modify.Precautions
The trust inner-8021p inbound command is mutually exclusive with the qos default-service-class command.
Before running the trust 8021p vlan command on an interface, use the trust upstream vlan command to bind a DS domain to the interface. Otherwise, the trust 8021p vlan configuration does not take effect.<HUAWEI> system-view [~HUAWEI] diffserv domain ds1 [*HUAWEI-dsdomain-ds1] quit [*HUAWEI] interface GigabitEthernet0/1/24 [*HUAWEI-GigabitEthernet0/1/24] portswitch [*HUAWEI-GigabitEthernet0/1/24] port trunk allow-pass vlan 1 to 10 [*HUAWEI-GigabitEthernet0/1/24] trust upstream ds1 vlan 1 to 10 [*HUAWEI-GigabitEthernet0/1/24] trust 8021p vlan 1 to 10