The mac-route no-advertise command disables local MAC routes from being advertised.
The undo mac-route no-advertise command cancels the configuration.
By default, local MAC routes can be advertised.
Usage Scenario
In VXLAN Layer 3 gateway scenarios where Layer 2 unicast traffic forwarding is not involved, to disable local MAC routes from being advertised, run the mac-route no-advertise command. This configuration prevents an EVPN peer gateway from receiving MAC routes, therefore saving memory resources.