set access-ve-mac

Function

The set access-ve-mac command configures the MAC address of an L3VE interface.

The undo set access-ve-mac command restores the MAC address of an L3VE interface.

By default, the MAC address of an L3VE interface is the system bridge MAC address.

Format

set access-ve-mac mac-address

undo set access-ve-mac

Parameters

Parameter Description Value
mac-address

MAC address of an L3VE 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.

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, an L2VE interface and the sub-interface of an Eth-Trunk or portswitch interface are bound to the same local VSI. The default MAC addresses of an L3VE interface that needs to communicate with the preceding sub-interface and the sub-interface are both the system bridge's MAC address. In this case, packets that the L2VPN's CE sends to the L3VE interface will be sent to the CPU when passing through the sub-interface, and traffic will be discarded. This is because the destination MAC address of the packets is the same as the MAC address of the preceding sub-interface. To resolve this issue, run the set access-ve-mac command to modify the MAC address of the L3VE interface.

Precautions

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

Example

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