mac-address (NVE interface view)

Function

The mac-address command sets a VTEP MAC address.

The undo mac-address command deletes a VTEP MAC address.

By default, a VTEP address is a system MAC address.

Format

mac-address H-H-H

undo mac-address [ H-H-H ]

Parameters

Parameter Description Value
H-H-H

Specifies a VTEP MAC address.

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.

A MAC address cannot be all 0s, all 1s, or a multicast MAC address.

Views

NVE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

In VTEP all-active access scenarios, the NVE interfaces on all-active devices must have the same source VTEP MAC address. To set a VTEP MAC address to control the MAC extension attribute carried in EVPN BGP routes, run the mac-address command.

If no VTEP MAC address is configured, the MAC address of an NVE interface on an all-active device is the system MAC address. In this case, VTEP functions become unavailable.

Example

# Set the VTEP MAC address to 00e0-fc00-0009.
<HUAWEI> system-view
[~HUAWEI] interface Nve 1
[*HUAWEI-Nve1] mac-address 00e0-fc00-0009
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >