Do the following to configure a Layer 3 gateway for MAC IP routes.
This configuration is similar to that for Layer 2 EVPN MAC routes.
vlan 1-4
evpn r1 route-target both auto rd auto vlan add 2-4
router bgp local-as 100 neighbor 98.0.0.1 remote-as 100 address-family ipv4 unicast ! address-family ipv6 unicast ! address-family l2vpn evpn graceful-restart neighbor 98.0.0.1 encapsulation vxlan neighbor 98.0.0.1 activate
interface Loopback 1 no shutdown ip ospf area 0 ip address 1.2.3.4/32
interface Ethernet 0/4 ip ospf area 0 ip proxy-arp ip address 98.0.0.2/24 no shutdown
overlay-gateway g1 type layer2-extension ip interface Loopback 1 map vni auto activate