< Home

remark 8021p

Function

The remark 8021p command configures an action of re-marking the 802.1p priority in VLAN packets in a traffic behavior.

The undo remark 8021p command deletes the configuration.

By default, no action of re-marking the 802.1p priority in VLAN packets is configured in a traffic behavior.

Format

remark 8021p [ 8021p-value | inner-8021p ]

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support the inner-8021p parameter.

undo remark 8021p

Parameters

Parameter

Description

Value

8021p-value

Specifies the 802.1p priority of VLAN packets.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority in VLAN packets.

If the value is not specified, the default value 0 is used.

inner-8021p

Inherits the 802.1p priority in the inner tag.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide differentiated services based on the inner 802.1p priority in VLAN packets, run the remark 8021p command to configure the device to re-mark the inner 802.1p priority in VLAN packets in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing 802.1p priority re-marking.

Precautions

If a traffic policy containing remark 8021p is applied to the outbound direction on an interface, the device still processes outgoing packets based on the original priority but the downstream Layer 2 device processes the packets based on the re-marked priority.

A traffic policy containing the remark 8021p inner-8021p action can only be used in the inbound direction. For the S5720-EI, S6720-EI, or S6720S-EI, if a traffic policy contains remark 8021p inner-8021p, the PRI field (802.1p priority) in single-tagged packets is changed to 0. In this case, you can configure if-match double-tag in a traffic classifier to change the 802.1p priority only of double-tagged packets.

A traffic policy containing the remark 8021p inner-8021p action can only be used in the inbound direction.

If a traffic policy containing remark 8021p is applied to the outbound direction on an interface, the VLAN of the interface must work in tag mode.

When a traffic classifier defines if-match ipv6 acl { acl-number | acl-name }, remark 8021p [ 8021p-value | inner-8021p ] cannot be configured on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S.

On the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, if selective QinQ, VLAN mapping, flow ID re-marking, 802.1p priority re-marking, or MAC address learning disabling is configured in a traffic behavior, the following actions cannot be defined in the traffic behavior: traffic statistics collection, traffic mirroring, redirection, policy-based routing, DSCP priority re-marking, internal priority re-marking, destination MAC address re-marking, traffic policing, and hierarchical traffic policing.

On the S5720-EI, S6720-EI, and S6720S-EI, if flow ID re-marking, re-marking of inner VLAN tags in QinQ packets, MAC address learning disabling, or redirection of packets to a VPN instance is configured in a traffic behavior, the following actions cannot be defined in the traffic behavior: traffic statistics collection, traffic mirroring, redirection, policy-based routing, DSCP priority re-marking, internal priority re-marking, destination MAC address re-marking, traffic policing, and hierarchical traffic policing.

If both the trust 8021p command and the traffic policy containing remark 8021p are used in the outbound direction on the interface of packets, the 802.1p priority specified by the trust 8021p command is the re-marked value. This is because the remark 8021p command takes precedence over the trust 8021p command.

The remark 8021p and remark local-precedence commands cannot be used in the same traffic behavior.

If you run the remark 8021p command in the same traffic behavior view multiple times, only the latest configuration takes effect.

Applying a traffic policy containing remark 8021p does not change the local priority of packets on a device. To change the local priority of packets on a device, configure remark local-precedence in the traffic policy.

Example

# Re-mark the 802.1p priority of VLAN packets with 4 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] remark 8021p 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >