encapsulation untag

Function

The encapsulation untag command enables a Layer 2 sub-interface to receive untagged packets.

The undo encapsulation untag command disables a Layer 2 sub-interface from receiving untagged packets.

By default, no encapsulation type is configured on a Layer 2 sub-interface.

Format

encapsulation untag

undo encapsulation untag

Parameters

None

Views

400GE Layer 2 sub-interface view, 50GE Layer 2 sub-interface view, Eth-Trunk Layer 2 sub-interface view, GE Layer 2 sub-interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

To add packets that do not carry VLAN TAG, run the encapsulation untag command on the sub-interface. Each Layer 2 sub-interface can be configured with only one encapsulation type. If flow encapsulation has been configured on a Layer 2 sub-interface, you must run the undo encapsulation command to delete the original encapsulation type before changing the encapsulation type.

Configuration Impact

After the encapsulation untag command is run, the main interface cannot forward packets without VLAN tags.

After the encapsulation untag configuration is deleted, if VLAN-related configurations exist on the main interface, you need to reconfigure the VLAN-related configurations on the main interface to make the configurations take effect.

Example

# Set the encapsulation type of the EVC Layer 2 sub-interface to untagged.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1.1 mode l2
[*HUAWEI-GigabitEthernet0/1/1.1] encapsulation untag
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >