
Host-1 sends a telnet packet to Host-3 with Source MAC aa:bb:cc:00:70:00 and the destination MAC 00:00:22:22:33:33 in the L2 ethernet.

The destination MAC is the MAC address of the Anycast Gateway configured on all leafs as shown below.

From Leaf-1 to Spine-1 then to Leaf-3, the packet is encapsulated with VXLAN.
The inner L2 ethernet is changed, remember the symmetric IRB with L3 VNI is used for inter-L2VNI routing or Inter-Subnet routing, since routing between subnets (between VLANS or L2 VNI) is involved, the Leaf-1 switch must rewrite the inner L2 ethernet with the new source MAC fa:16:3e:00:00:01 and new destination MAC 50:00:00:02:00:07.

The new inner source MAC fa:16:3e:00:00:01 is the MAC address of the outgoing interface e1/1's Leaf-1 to Spine-1 as show by the show int e1/1 command.

The new inner destination MAC 50:00:00:02:00:07 is the Router MAC of the VTEP next hop Leaf-3 to reach the MAC-IP Route of Host 3 learned through a Route Type 2 BGP Control Plan. The Router MAC of Leaf-3 is learned by Leaf-1 via the Route Type 2 through the Extcommunity BGP Attribute as shown by the sh bgp L2vpn evpn command on Leaf-1.

We can confirm on Leaf with the show NVE interface on Leaf-3.

The outer L2 Ethernet follows the underlay L2 encapsulation Hop by Hop with source MAC fa:16:3e:00:00:01 which is the MAC Address of the outgoing interface e1/1's Leaf-1 as shown below.


And the destination MAC which is the MAC Address 50:00:00:04:00:07 of the next hop Spine-1's e1/1 interface, according to the routing lookup performed based on the outer L3 header (Source IP Leaf-1 VTEP Address 192.168.0.18 and Destination IP VTEP Leaf-3 Address 192.168.0.110) as shown below.

The Leaf-3 Switch removes the VXLAN encapsulation and rewrites the inner L2 Ethernet of the previous VXLAN Packet with a new Source MAC 50:00:00:02:00:07 and new Destination MAC aa:bb:cc:00:90:00.

The source MAC 50:00:00:02:00:07 is the MAC Address of the interface VLAN 141 as shown below.

The Destination MAC aa:bb:cc:00:90:00 is the MAC Address of the Host-3 as shown below.
