8021p

Function

The 8021p command sets VLAN priorities carried on user protocol packets.

The undo 8021p command cancels the VLAN priorities carried on user protocol packets.

By default, VLAN priorities carried on user protocol packets are not set.

Format

8021p 8021p-value

undo 8021p

Parameters

Parameter Description Value
8021p-value

Indicates the priority of VLAN frames.

The value is an integer ranging from 0 to 7.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VE sub-interface view, VLANIF interface view, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
hostdefend write

Usage Guidelines

Usage Scenario

The Layer 2 network allows only packets with a specific VLAN priority to pass through and discards packets with all the other VLAN priorities. Therefore, a VLAN priority must be specified for user protocol packets that are transmitted over the Layer 2 network.

Configuration Impact

After the 8021p command is configured on an interface, the VLAN priorities of user protocol packets to be sent by the interface will be changed to the specific VLAN priority.

Precautions

This command can take effect for the user protocol packets of DHCP, PPPOE, ICMP, BFD, ND, ARP, VRRP, EAP, IS-IS, and so on.

The preceding commands can be configured only on a Layer 3 main interface, or a sub-interface belonging to a Layer 3 main interface.

If the 8021p command is configured on a main interface, the configuration takes effect on all sub-interfaces of the main interface. If the 8021p command is configured on both a main interface and one of its sub-interface, the configuration on the sub-interface takes effect preferentially on the sub-interface.

For double-tagged VLAN packets, change priorities carried in inner and outer VLAN tags. For single-tagged VLAN packets, change the priority carried in the VLAN tag.

For UDP packets, the default value of the VLAN priority is 0.

Example

# Set the inner and outer VLAN priorities carried on user protocol packets to 3 on GE0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] 8021p 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >