An end-to-end VXLAN EVPN uses the same service platform, which helps implement unified VXLAN VNI resource management.
Gateways and DCI-PEs are deployed individually. As edge devices of the underlay network, DCI-PEs only advertise VTEP routes across DCs, but do not store the tenant or host information of DCs.
On the network shown in Figure 1, an end-to-end VXLAN tunnel can be established between Device1 and Device2 to implement communication between DC A and DC B. For example, VMa1 and VMb2 need to communicate with each other. To meet this requirement, establish a BGP EVPN peer relationship between Device1 and Device2 so that they can learn MAC and IP routes from each other. In addition, GW1 and GW2 in the data centers are connected to DCI-PE1 and DCI-PE2, respectively, on the backbone network. An L3VPN based on an MPLS TE tunnel is established between DCI-PE1 and DCI-PE2 to transmit VXLAN packets.
If only Layer 2 communication between VMs needs to be implemented, Layer 3 gateways do not need to be configured. If VMs need to communicate with each other at Layer 3 or with external networks, a Layer 3 gateway needs to be configured.