The mac-address command configures the MAC address of a VBDIF interface.
The undo mac-address command restores the default MAC address of a VBDIF interface.
By default, the MAC address of a VBDIF interface is the system MAC address.
Parameter | Description | Value |
---|---|---|
mac-address | Specifies the MAC address of a VBDIF interface. | The value is in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0 or fc01. If you enter fewer than four alphanumeric characters, 0s are added before the input digits. For example, if e0 is entered, 00e0 is specified. A MAC address cannot be set to all 0s or all 1s. The MAC address of a VBDIF interface ranges from 0000-5e00-0100 to 0000-5e00-01ff. |
Usage Scenario
In a distributed gateway scenario, multiple Layer 3 gateways are simulated into one gateway. You need to run the mac-address command to configure the same MAC address for the VBDIF interfaces on these Layer 3 gateways to ensure normal traffic forwarding and VM migration. Using the same MAC address, the Layer 3 gateways act like one gateway for terminals.
Precautions
After the MAC address of a VBDIF interface is changed, the switch proactively sends gratuitous ARP packets to update the mapping relationship between MAC addresses and ports.
The MAC address configured for a VBDIF interface cannot be the same as the virtual MAC address of a VRRP group on the switch. You can run the display vrrp and display vrrpv6 commands to view virtual MAC addresses of VRRP groups configured on the switch.