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