trust 8021p vlan

Function

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.

Format

trust { 8021p | inner-8021p | outer-8021p } [ inbound | outbound ] vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo trust { 8021p | inner-8021p | outer-8021p } [ inbound | outbound ] vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

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

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.

Views

100GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

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.

Example

# Bind a Layer 2 interface to a DS domain named ds1 and configure the Layer 2 interface to implement simple traffic classification for packets from VLANs 1 through 10.
<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
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >