trust 8021p

Function

The trust 8021p command enables BA classification based on the 802.1p value on an interface.

The undo trust 8021p command disables BA classification based on the 802.1p value on an interface.

By default, BA classification based on the 802.1p value is not enabled.

Format

trust { 8021p | inner-8021p | outer-8021p } [ inbound | outbound ]

undo trust { 8021p | inner-8021p | outer-8021p } [ inbound | outbound ]

trust 8021p

undo trust 8021p

Parameters

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

Specifies the inbound interface which enables BA classification.

-

outbound

Specifies the outbound interface which enables BA classification.

-

Views

100GE interface view, 10G LAN interface view, 10G WAN interface view, EVC view of a 10GE interface, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, BAS interface view, EVC view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE electrical interface view, Global-VE layer2 subinterface view, Global VE interface view, PW-VE sub-interface view, PW-VE interface view, VE layer2 subinterface view, VE sub-interface view, EVC view of an Eth-Trunk interface, EVC view of an Ethernet interface, EVC view of a GE interface, Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

After the trust 8021p command is run on an interface, the device maps the 802.1p value of packets into the internal priority when the interface functions as the inbound interface, and maps the internal priority of packets into the 8021.p value when the interface functions as the outbound interface.

If the inbound and outbound parameters are not specified, the command takes effect on both inbound and outbound interface traffic.

Prerequisites

Before running this command on an interface, you need to run the trust upstream command to bind a DS domain to the interface. Otherwise, the configuration cannot take effect.

Precautions

The trust 8021p inbound command is mutually exclusive with the qos default-service-class command.

The inner-8021p and outer-8021p parameters are not supported on global-VE and PW-VE interfaces.

This configuration is supported by global VE sub-interfaces rather than global VE interfaces.

If only the trust 8021p command is run, the function does not take effect. You also need to run the trust upstream command for the function to take effect.

After the configuration is complete, packets enter queues based on the 802.1p value in the outer VLAN tag when entering the interface, and the queue priorities are reversely mapped to the 802.1p values in the inner and outer VLAN tags when packets leave the interface. The mapping in the user-defined DS domain is trusted.

The dot1q-tunnel and access interfaces add tags to untagged packets before sending them to queues. If the trust 8021p command is configured on the interface, packets enter the BE queue based on the original packet priority.

Example

# Enable BA classification based on the 802.1p value on GE 0/1/24.1.
<HUAWEI> system-view
[~HUAWEI] diffserv domain d1
[*HUAWEI-dsdomain-d1] quit
[*HUAWEI] interface GigabitEthernet0/1/24.1
[*HUAWEI-GigabitEthernet0/1/24.1] trust upstream d1
[*HUAWEI-GigabitEthernet0/1/24.1] trust 8021p
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >