< Home

l2protocol-tunnel

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 disable command disables Layer 2 protocol tunneling on an interface.

By default, Layer 2 protocol tunneling is disabled on an interface.

Format

l2protocol-tunnel { all | { protocol-type } &<1-16> | user-defined-protocol protocol-name } enable

l2protocol-tunnel { all | { protocol-type } &<1-16> | user-defined-protocol protocol-name } disable

undo l2protocol-tunnel { { protocol-type } &<1-16> | user-defined-protocol protocol-name } enable

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

Enables or disables transparent transmission of packets of a specified Layer 2 protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Shared Spanning Tree Protocol (SSTP)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
  • Ethernet Synchronization Message Channel (ESMC)
NOTE:
  • You can select one or more preceding protocols.

  • By default, the packets with the destination MAC address of 0100-0CCC-CCCD are not BPDUs. PVST+ BPDUs are transparently transmitted by default, and other protocol packets are not transparently transmitted by default.

user-defined-protocol protocol-name

Enables or disables transparent transmission of packets of a specified user-defined Layer 2 protocol. protocol-name specifies the name of a user-defined protocol.

The value is a string of 1 to 31 characters without spaces.

When double quotation marks are used around the string, spaces are allowed in the string.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Layer 2 protocol tunneling is often configured on an interface connecting the PE and CE. After Layer 2 protocol tunneling is enabled, Layer 2 protocol packets received from the user network need to be sent to the CPU and the destination MAC address in the packets needs to be replaced. On the ISP network, Layer 2 protocol packets are directly forwarded.

Generally, the l2protocol-tunnel command is run on user-side interfaces of PEs.

Prerequisites

  • The l2protocol-tunnel vlan command enables an interface to transparently transmit Layer 2 protocol packets from the specified VLANs. The l2protocol-tunnel command enables an interface to transparently transmit all Layer 2 protocol packets.

  • The l2protocol-tunnel vlan and l2protocol-tunnel commands cannot specify the same protocol type on the same interface; otherwise, the configurations conflict.

  • Before specifying a user-defined protocol in the l2protocol-tunnel enable command, run the l2protocol-tunnel user-defined-protocol command to define characteristic information about the Layer 2 protocol.

  • STP packets have a default group MAC address for replacing the original destination MAC address. For packets of other Layer 2 protocols, you need to configure a global group MAC address to replace the destination MAC address. For details, see l2protocol-tunnel group-mac.

  • To improve system performance, do not add service-irrelevant interfaces to the VLAN on which Layer 2 protocol tunneling is enabled.

  • When an interface is enabled to transparently transmit the packets of a certain protocol, these packets do not participate in protocol processing. For example, after an interface is enabled to transparently transmit STP packets, the interface does not participate in STP calculation. Therefore, you are advised not to enable a protocol and the transparent transmission of this protocol on the same interface.
  • You can configure the l2protocol-tunnel enable command on Layer 3 main interfaces and sub-interfaces only when the interfaces are on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S and these interfaces are bound to VSIs.

Example

# Configure GE0/0/1 to transparently transmit STP BPDUs.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] stp disable
[HUAWEI-GigabitEthernet0/0/1] l2protocol-tunnel stp enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >