The mac-ip route generate-mac command enables the function to generate MAC entries based on MAC/IP routes.
The undo mac-ip route generate-mac command disables the function.
By default, the function to generate MAC entries based on MAC/IP routes is not enabled.
Usage Scenario
In EVPN VXLAN scenarios, if the remote gateway is configured not to advertise MAC routes (that is, mac-route no-advertise) or is configured not to generate MAC routes (that is, local mac-only-route no-generate), the local gateway cannot generate MAC entries by default. To guide Layer 2 traffic forwarding, run the mac-ip route generate-mac command on the local gateway to enable MAC address entry generation based on MAC/IP routes.
Precautions
After the mac-ip route generate-mac command is run, if the remote gateway advertises both MAC/IP routes and MAC routes, the local gateway generates MAC entries based on only MAC routes.