l2protocol-tunnel enable (Layer 2 interface view)

Function

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.

Format

l2protocol-tunnel { all | { protocol } &<1-19> } { enable | reverse }

undo l2protocol-tunnel { all | { protocol } &<1-19> } { enable | reverse }

Parameters

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):

  • stp
  • lacp
  • dtp
  • gmrp
  • gvrp
  • lldp
  • vtp
  • udld
  • pagp
  • cdp
  • eoam3ah
  • dldp
  • mvrp
  • mmrp
  • e-lmi
  • sstp
  • pvst+
  • hgmp
  • 802.1x
enable

Layer 2 protocol transparent transmission is enabled.

-

reverse

Reverse Layer 2 protocol tunneling is enabled.

-

Views

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

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

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

  • Edge devices on a backbone network have been configured to replace the multicast destination MAC addresses of Layer 2 PDUs with a specified multicast MAC address using the l2protocol-tunnel group-mac command.
  • 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 multicast destination MAC addresses in Layer 2 PDUs have been replaced with a specified multicast MAC address using the l2protocol-tunnel group-mac command run on an edge device of a backbone network.

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.

Example

# Enable reverse Layer 2 protocol tunneling on GE 0/1/1 to replace a specified multicast MAC address with the multicast destination MAC address (0180-C200-0000) of STP BPDUs.
<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
# Enable STP tunneling on the interface GE 0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] l2protocol-tunnel stp enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >