The BGP EVPN fabric carries VLAN 10 (VNI 10010) on L1 and VLAN 20 (VNI 10020) on L2, but nothing routes between them. Add a tenant VRF with a Layer 3 VNI: each leaf is the anycast gateway of its subnet, and traffic between subnets is routed into VNI 50000, carried to the other leaf and routed again there (symmetric IRB).
CCNP Data Center track · Cisco Nexus (NX-OS-style) · 6 objectives
The simulator ticks each one as soon as the network meets it.
On L1 and L2 enable feature interface-vlan and feature fabric forwarding, and set fabric forwarding anycast-gateway-mac 2020.0000.00aa.
Create vrf context TENANT with vni 50000, rd auto and, under address-family ipv4 unicast, route-target both auto evpn.
Map VLAN 500 to vn-segment 50000; interface vlan 500 is a member of VRF TENANT with ip forward and no shutdown; add member vni 50000 associate-vrf under interface nve1.
Gateways: on L1 interface vlan 10 (192.168.10.1/24), on L2 interface vlan 20 (192.168.20.1/24), each with vrf member TENANT, fabric forwarding mode anycast-gateway and no shutdown.
show ip route vrf TENANT on L1: 192.168.20.20/32 via 2.2.2.2 with segid 50000.