Summary
Need to add in CLI command that adds a local FDB entry to prevent anycast MAC from going over overlay.
Linux command:
bridge fdb add <MAC> dev <BRIDGE INTERFACE> self local
Use case
This command is used in EVPN Anycast Gateway implementation. https://docs.frrouting.org/en/latest/evpn.html#anycast-gateways-with-single-vxlan-device
Example of EVPN Anycast Gateway configuration.
# Bridge interface configuration set interfaces bridge br0 enable-vlan set interfaces bridge br0 member interface eth4 native-vlan '100' set interfaces bridge br0 member interface eth5 native-vlan '200' set interfaces bridge br0 member interface vxlan0 set interfaces bridge br0 vif 100 vrf 'RED' #MACVLAN interface that contains Anycast IP and Anycast MAC set interfaces pseudo-ethernet peth100 address '192.168.1.1/24' set interfaces pseudo-ethernet peth100 ip enable-arp-accept set interfaces pseudo-ethernet peth100 mac '00:aa:aa:aa:aa:aa' set interfaces pseudo-ethernet peth100 source-interface 'br0.100'
According to this configuration, there is a need to add the next command
sudo bridge fdb add 00:aa:aa:aa:aa:aa dev br0 self local
Be careful, not a bridge subinterface which is defined in peth. It should be the master of this subinterface.
Additional information
Proposed CLI implementation.
set interfaces pseudo-ethernet peth100 anycast-gateway
This command should be applied if the pseudo-ethernet interface MAC is explicitly configured.
Also, the peth interface source-interface should be a bridge interface or a bridge subinterface.