set l2ve-mac

Function

The set l2ve-mac command configures the MAC address of an L2VE interface.

The undo set l2ve-mac command restores the MAC address of an L2VE interface.

By default, the MAC address of an L2VE interface allocated by the system.

Format

set l2ve-mac mac-address

undo set l2ve-mac

Parameters

Parameter Description Value
mac-address

MAC address of an L2VE interface.

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. The MAC address cannot be set to FFFF-FFFF-FFFF.

Views

Slot view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

In a scenario where an L2VPN accesses an L3VPN, when packets whose destination MAC address is the same as an L2VE interface's MAC address are sent from the L3VPN to the L2VPN's CE, the packets are unexpectedly processed based on Layer 3 forwarding through the L2VE interface, therefore causing traffic loss. To resolve this issue, run the set l2ve-mac command to modify the MAC address of the L2VE interface.

Precautions

After the set l2ve-mac command is run for multiple times, the latest MAC address takes effect.

Example

# Configure the MAC address of the L2VE interface in slot 1 to be 00e0-fc12-3456.
<HUAWEI> system-view
[~HUAWEI] slot 1
[~HUAWEI-slot-1] set l2ve-mac 00e0-fc12-3456
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >