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.
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
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.