The l2protocol-tunnel enable command enables Layer 2 protocol tunneling on an interface.
The undo l2protocol-tunnel enable command disables Layer 2 protocol tunneling on an interface.
The l2protocol-tunnel reverse command enables reverse Layer 2 protocol tunneling on an interface.
The undo l2protocol-tunnel reverse command cancels reverse Layer 2 protocol tunneling on an interface.
By default, Layer 2 protocol tunneling and reverse Layer 2 protocol tunneling are disabled on interfaces.
Parameter | Description | Value |
---|---|---|
all |
Enables or disables transparent transmission of packets of all standard Layer 2 protocols and user-defined Layer 2 protocols. |
- |
protocol |
Enables or disables Layer 2 protocol tunneling for a specified Layer 2 protocol. |
You can enter a question mark (?) and select a value as prompted (the supported value range is subject to the device prompt):
|
enable |
Layer 2 protocol transparent transmission is enabled. |
- |
reverse |
Reverse Layer 2 protocol tunneling is enabled. |
- |
Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, 50GE Layer 2 sub-interface view, Layer 2 50GE interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Layer 2 Eth-Trunk interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE Layer 2 sub-interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view, Layer 2 sub-interface view, Sub-interface view, Interface group view
Usage Scenario
Some Layer 2 protocols running between user networks, such as Multiple Spanning Tree Protocol (MSTP) and Link Aggregation Control Protocol (LACP), must traverse a backbone network to perform Layer 2 protocol calculation.
To allow Layer 2 PDUs from user networks to be transparently transmitted over a backbone network, run the l2protocol-tunnel enable command to configure Layer 2 protocol tunneling. Layer 2 PDUs from the user networks then travel through different Layer 2 tunnels to reach the destinations to perform Layer 2 protocol calculation.Prerequisites
Configuration Impact
If the l2protocol-tunnel reverse command is run more than once, the latest configuration overrides the previous one.
Precautions
Layer 2 protocol tunneling cannot be enabled on Layer 3 interfaces that are not bound to VSIs, VLLs, BDs, or do not have the portswitch command run.
The l2protocol-tunnel reverse and l2protocol-tunnel reverse vlan commands cannot be run on the same interface.<HUAWEI> system-view [~HUAWEI] l2protocol-tunnel stp group-mac 0180-C200-0000 [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] l2protocol-tunnel stp reverse
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] l2protocol-tunnel stp enable