In EVPN, Type 5 routes are used only by hosts on a VXLAN network to access external networks.
A VXLAN tunnel is identified by a pair of VTEP IP addresses. During VXLAN tunnel establishment, the local and remote VTEPs attempt to obtain each other's IP addresses. If the VTEP IP addresses are reachable to each other at Layer 3, a VXLAN tunnel can be established.