l2protocol-tunnel group-mac

Function

The l2protocol-tunnel group-mac command configures a device to replace the multicast destination MAC addresses in Layer 2 protocol data units (PDUs) with a specified multicast MAC address (group MAC address).

The undo l2protocol-tunnel group-mac command deletes the specified multicast MAC address (group MAC address) from Layer 2 PDUs of all Layer 2 protocols except STP or restores the default multicast MAC address in STP BPDUs.

By default, Layer 2 PDUs of all Layer 2 protocols do not have a default group MAC address.

Format

l2protocol-tunnel protocol group-mac { group-mac }

undo l2protocol-tunnel protocol

Parameters

Parameter Description Value
protocol

Replaces the destination MAC address in Layer 2 PDUs of a specified protocol with a specified multicast MAC address.

The protocol as follows:

  • stp
  • lacp
  • dtp
  • gmrp
  • gvrp
  • lldp
  • vtp
  • udld
  • pagp
  • cdp
  • eoam3ah
  • dldp
  • mvrp
  • mmrp
  • e-lmi
  • sstp

One or up to all of the preceding Layer 2 protocols can be specified.

group-mac group-mac

Specifies the multicast MAC address which is used to replace the destination MAC address in Layer 2 PDUs.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

group-mac must start with 0x01 and cannot be any of the following multicast MAC addresses:

  • Multicast MAC addresses that are in use on the local device
  • 0180-C200-0000 to 0180-C200-002F, which are used for BPDUs
  • 010F-E200-0004, which is used for Smart Link packets
  • 0100-0CCC-CCCC and 0100-0CCC-CCCD, which are reserved for specific purposes

Views

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

Generally, the destination MAC addresses in Layer 2 PDUs of the same Layer 2 protocol are the same. For example, the MSTP PDUs have a destination MAC address 0180-C200-0000. When a Layer 2 PDU reaches an edge device on a backbone network, the edge device cannot identify whether the PDU comes from a user network or the backbone network and sends the PDU to the CPU to calculate a spanning tree. As a result, the user network devices calculate a spanning tree with backbone network edge devices but not with user network devices.

To resolve this problem, run the l2protocol-tunnel group-mac command on backbone network edge devices to replace the multicast destination MAC addresses in Layer 2 PDUs with a specified multicast MAC address (group MAC address). This configuration allows Layer 2 PDUs to be tunneled so that user network devices can calculate a spanning tree.

Follow-up Procedure

The backbone network edge devices determine whether to add an outer VLAN tag to the Layer 2 PDUs with a specified multicast MAC address (group MAC address) based on the configured Layer 2 protocol tunneling type.

Precautions

The specified multicast MAC address cannot be a multicast MAC address used by well-known protocols.

In VS mode, this command is supported only by the admin VS.

Example

# Configure a device to replace the multicast destination MAC address in STP BPDUs with 0100-5E00-0011 before tunneling the STP BPDUs.
<HUAWEI> system-view
[~HUAWEI] l2protocol-tunnel stp group-mac 0100-5e00-0011
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >