< Home

mac-route no-advertise

Function

The mac-route no-advertise command configures a device not to advertise local MAC routes.

The undo mac-route no-advertise command configures a device to advertise local MAC routes.

By default, a device advertises local MAC routes.

Format

mac-route no-advertise

undo mac-route no-advertise

Parameters

None

Views

EVPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

For a Layer 3 VXLAN gateway, if Layer 2 unicast traffic forwarding is not involved, you can run the mac-route no-advertise command to configure the gateway not to advertise local MAC routes. In this case, the remote gateway cannot receive MAC routes, saving the memory for learning unnecessary MAC routes.

Precautions

When this command is configured in an EVPN instance bound to a BD, the corresponding MAC routes in the BD are no longer externally advertised. Therefore, in this scenario, MAC address flapping on the device where the corresponding BGP peer resides does not depend on the MAC routes advertised by the local device.

Example

# Configure a device not to advertise local MAC routes in evpn10.

<HUAWEI> system-view
[HUAWEI] evpn vpn-instance evpn10 bd-mode
[HUAWEI-evpn-instance-evpn10] mac-route no-advertise
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >