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.
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.