local mac-only-route no-generate

Function

The local mac-only-route no-generate command disables the device from generating EVPN MAC routes when both MAC address entries and ARP/ND entries contain local MAC addresses.

The undo local mac-only-route no-generate command restores the default configuration.

By default, EVPN MAC routes are generated when both MAC address entries and ARP/ND entries contain local MAC addresses.

Format

local mac-only-route no-generate

undo local mac-only-route no-generate

Parameters

None

Views

BD EVPN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

If a MAC address entry and an ARP/ND entry on the local gateway both contain the local MAC address in EVPN scenarios, the gateway generates both an EVPN MAC/IP route and an EVPN MAC route by default. To optimize memory utilization, perform this step so that the gateway generates only a MAC/IP route. To ensure normal Layer 2 traffic forwarding, also run the mac-ip route generate-mac command on the peer gateway to enable the function to generate MAC address entries based on MAC/IP routes.

Example

# Disable the device from generating EVPN MAC routes when both MAC address entries and ARP/ND entries contain local MAC addresses.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance 2 bd-mode
[*HUAWEI-evpn-instance-2] local mac-only-route no-generate
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >