vlan-swap enable

Function

The vlan-swap enable command enables VLAN tag swapping.

The undo vlan-swap enable command disables VLAN tag swapping.

By default, this function is disabled on an interface.

Format

vlan-swap enable

undo vlan-swap enable

Parameters

None

Views

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

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

If both inner and outer tags of all packets transmitted on an interface need to be swapped, run the vlan-swap enable command on the interface. After VLAN tag swapping is configured on the interface, all its sub-interfaces are enabled with VLAN tag swapping automatically.

Configuration Impact

The vlan-swap enable command swaps the two VLAN tags of double-tagged packets and has no impact on single-tagged packets.

After BA classification based on 802.1p values is configured on a VLAN-swap-capable interface, BA classification is implemented based on the 802.1p values of the swapped outer VLAN tag.

Example

# Enable VLAN tag swapping on GE 0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] vlan-swap enable
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >