mac-ip route generate-mac

Function

The mac-ip route generate-mac command enables the function to generate MAC entries based on MAC/IP routes.

The undo mac-ip route generate-mac command disables the function.

By default, the function to generate MAC entries based on MAC/IP routes is not enabled.

Format

mac-ip route generate-mac

undo mac-ip route generate-mac

Parameters

None

Views

BD EVPN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In EVPN VXLAN scenarios, if the remote gateway is configured not to advertise MAC routes (that is, mac-route no-advertise) or is configured not to generate MAC routes (that is, local mac-only-route no-generate), the local gateway cannot generate MAC entries by default. To guide Layer 2 traffic forwarding, run the mac-ip route generate-mac command on the local gateway to enable MAC address entry generation based on MAC/IP routes.

Precautions

After the mac-ip route generate-mac command is run, if the remote gateway advertises both MAC/IP routes and MAC routes, the local gateway generates MAC entries based on only MAC routes.

Example

# Enable the function to generate MAC address entries based on MAC/IP routes.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance 2 bd-mode
[*HUAWEI-evpn-instance-2] mac-ip route generate-mac
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >