< Home

mac rib-only

Function

The mac rib-only command configures a device not to deliver MAC address entries after receiving remote MAC routes.

The undo mac rib-only command configures a device to deliver MAC address entries after receiving remote MAC routes.

By default, a device is triggered to deliver MAC address entries after receiving remote MAC routes.

Format

mac rib-only

undo mac rib-only

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 rib-only command to configure a device not to deliver local MAC address entries after receiving VNI ID-based MAC routes advertised by the EVPN peer, saving forwarding entry resources.

Precautions

When this command is configured in an EVPN instance bound to a BD, the BD does not deliver MAC address entries after receiving remote MAC routes. Therefore, in this scenario, MAC address flapping in this BD does not depend on the MAC routes advertised by the remote BGP peer.

Example

# Configure a device not to deliver MAC address entries after receiving remote MAC routes in evpn10.

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