BGP EVPN for VXLAN Fabrics: Routes and Multihoming
BGP Ethernet VPN (EVPN) is a control plane used to distribute endpoint reachability across a network fabric, commonly alongside VXLAN as the data-plane encapsulation. It is useful to understand when a data center needs Layer 2 segments across routed links, predictable endpoint learning, or redundant attachment to multiple switches. This explainer traces how EVPN routes help VXLAN tunnel endpoints forward traffic, what the main route types communicate, and where operators still need to plan the underlay and failure behavior.
What Is BGP EVPN?
EVPN is a set of BGP procedures for advertising Ethernet and IP reachability. A switch or host acting as a network virtual endpoint learns local MAC and IP addresses, then advertises that information to other participating routers using the multiprotocol BGP EVPN address family. Remote endpoints can therefore learn where a destination lives without relying only on data-plane flooding.
VXLAN and EVPN solve different parts of the design. VXLAN encapsulates an Ethernet frame in UDP/IP so it can cross a routed IP network; its 24-bit VXLAN Network Identifier (VNI) identifies an overlay segment. EVPN advertises which endpoints and services belong to those segments. RFC 7348 describes VXLAN encapsulation, while RFC 7432 defines the BGP EVPN route model. RFC 8365 explains how EVPN can be used as an overlay control plane with VXLAN and other encapsulations.
In an EVPN-VXLAN fabric, a leaf switch commonly acts as a VXLAN tunnel endpoint (VTEP). It encapsulates traffic sent to remote VTEPs and decapsulates packets arriving from them. The FRRouting EVPN documentation describes this relationship in a Linux routing implementation.
Why EVPN Exists
Traditional Layer 2 networks learn MAC addresses by observing source addresses in arriving frames. When the destination is unknown, switches flood the frame within the VLAN, and each switch learns the source location as traffic flows. Extending this approach across many racks can create large broadcast domains, frequent flooding, and dependence on data-plane traffic to discover remote endpoints.
VXLAN allows a Layer 2 segment to span a routed IP underlay, but encapsulation alone does not tell a VTEP where every remote MAC address resides. Static mappings can supply that information, but they become difficult to maintain as workloads move or scale. EVPN adds a BGP-based control plane: endpoints and reachability are advertised explicitly, can be withdrawn after failures, and can be filtered or imported according to routing policy.
EVPN does not remove the need for a reliable underlay. The fabric still needs IP reachability between VTEPs, correct MTU sizing, consistent VNI-to-segment mappings, and a way to distribute EVPN routes. The control plane also does not replace firewall policy or application authorization.
How BGP EVPN Works
A useful model separates the fabric into three cooperating layers:
Endpoint frame
-> local leaf learns MAC/IP and associates it with a VNI
-> BGP EVPN advertises reachability to other leafs
-> remote leaf installs an endpoint-to-VTEP mapping
-> VXLAN carries the frame over the routed underlay
The local VTEP learns its directly attached endpoints from the bridge or another local mechanism. It advertises EVPN routes to BGP peers. A receiving VTEP imports routes whose route targets match its overlay instance, then programs a forwarding entry that maps the destination MAC or IP to a remote VTEP and VNI.
When a frame arrives for a known remote MAC, the ingress VTEP adds an outer IP/UDP header and VXLAN header. The underlay forwards the outer packet to the remote VTEP. The remote VTEP removes the encapsulation and forwards the original frame in the correct segment. The underlay routes outer VTEP addresses; it does not need a route for every tenant MAC.
| Design | Endpoint discovery | Unknown-destination handling | Main operational trade-off |
|---|---|---|---|
| VLAN switching | Switches learn from observed source MACs | Flood within the VLAN | Simple locally, but Layer 2 scope and flooding can grow |
| VXLAN without EVPN | Static entries, flooding, or an implementation-specific control plane | Often relies on replication or flooding | VXLAN extends segments, but endpoint state still needs a source |
| VXLAN with BGP EVPN | BGP EVPN routes advertise endpoint and service state | Can limit reliance on flooding as entries are learned | Scalable route distribution adds BGP policy and state to operate |
EVPN can reduce unnecessary flooding, but it does not make all broadcast, unknown-unicast, or multicast traffic disappear. The fabric still needs a configured handling method for traffic without a usable unicast route.
EVPN Components and Route Types
An Ethernet VPN instance (EVI) represents an EVPN service. In common VXLAN designs, an L2 VNI maps to a Layer 2 segment, while an L3 VNI is associated with a routed tenant context. The exact mapping and route-target policy depend on the implementation and topology.
Important BGP EVPN route types include:
- Type 1, Ethernet Auto-Discovery (A-D): Advertises Ethernet-segment or EVI reachability and supports multihoming procedures, including fast withdrawal of paths after a failure.
- Type 2, MAC/IP Advertisement: Advertises a MAC address and optionally an associated IP address. This is the main route for remote endpoint learning and MAC mobility.
- Type 3, Inclusive Multicast Ethernet Tag (IMET): Advertises participation in a broadcast domain and helps build the distribution for broadcast, unknown-unicast, and multicast traffic.
- Type 4, Ethernet Segment: Identifies a multihomed Ethernet segment and supports peer discovery and designated-forwarder procedures.
- Type 5, IP Prefix: Advertises IP prefixes for routed connectivity between tenant networks.
Route distinguishers make otherwise overlapping routes unique in BGP. Route targets determine which EVIs or VRFs import routes. They are different functions: a route distinguisher does not decide which networks receive a route. An implementation’s VNI or label provides data-plane context; it is not a substitute for matching route targets.
MAC mobility and multihoming
If a workload moves, its new attachment point can advertise the MAC/IP route with a higher mobility sequence. Other VTEPs can use this information to replace a stale location rather than treating the same MAC at two locations as two unrelated hosts. Duplicate-MAC detection and operational policy are still important; repeated movement can indicate a loop or misconfiguration rather than a legitimate migration.
With multihoming, a device or downstream switch can connect to more than one VTEP through an Ethernet segment. EVPN advertises that shared segment and supports all-active or single-active redundancy modes. In all-active designs, multiple paths can forward eligible traffic; split-horizon rules prevent traffic received from the segment from being reflected back to it. A designated forwarder is selected for specific broadcast and multicast forwarding duties on a segment. RFC 8584 describes extensible designated-forwarder election procedures.
Real-World Uses
- Multi-rack data centers: Extend selected tenant segments across leaf switches while keeping the physical fabric routed.
- Virtual machine and workload mobility: Advertise changed endpoint locations so other VTEPs can update their forwarding state.
- Tenant isolation: Use separate VNIs, routing instances, and route-target policies to separate network domains on shared infrastructure.
- Redundant server or switch attachment: Use EVPN multihoming to coordinate forwarding across two or more VTEPs.
- Layer 3 tenant connectivity: Use IP-prefix routes and L3 VNIs to exchange tenant routes between leafs or border gateways.
An EVPN fabric is not automatically a security boundary. Misconfigured route targets can import routes into the wrong network, and a reachable VTEP can still carry traffic that policy should reject. Treat control-plane filtering, management access, and data-plane policy as separate design requirements.
Practical Guide: A Small FRR EVPN Control-Plane Example
An FRRouting lab can illustrate BGP EVPN route exchange between two peers. FRRouting is an open-source routing suite for Linux and Unix; see the FRR project homepage and its EVPN documentation. This excerpt configures the BGP portion only; it assumes the Linux bridge/VXLAN interfaces, VNI, peer connectivity, and FRR daemons are already configured. Apply it only to an isolated lab and adapt the interface and route-target configuration to the exact FRR release and topology. The addresses below use documentation ranges.
router bgp 65001
bgp router-id 192.0.2.1
neighbor 192.0.2.2 remote-as 65001
!
address-family l2vpn evpn
neighbor 192.0.2.2 activate
advertise-all-vni
exit-address-family
The second peer needs a corresponding BGP session and its own router ID. This example uses a same-AS BGP relationship; larger fabrics may use eBGP at each leaf or route reflectors to scale iBGP. The advertise-all-vni command advertises locally configured VNIs; it does not create the Linux VXLAN devices or verify that the peers use compatible VNI and route-target mappings. Consult the current FRR BGP EVPN configuration reference before applying commands to a real deployment.
After establishing the session, inspect both the EVPN control plane and the local VNI state:
show bgp l2vpn evpn summary
show bgp l2vpn evpn route
show evpn vni
If a route is missing, verify BGP neighbor state, address-family activation, VNI presence, route-target import/export, and whether the endpoint was learned locally. If routes are present but traffic fails, check VTEP-to-VTEP underlay reachability, firewall rules for the selected encapsulation, MTU, bridge/VNI association, and forwarding entries on both endpoints. A successful BGP session alone proves neither that the route was imported into the intended segment nor that the data plane can deliver packets.
Common Misconceptions
“EVPN is the same thing as VXLAN”
No. EVPN distributes control-plane reachability; VXLAN carries encapsulated frames in the data plane. They are commonly paired but can be used separately or with other transports.
“BGP EVPN means every packet is forwarded through BGP”
BGP distributes route information and updates forwarding state. Packets are normally switched or routed in the data plane using the installed state; they are not sent to a BGP process for each hop.
“EVPN eliminates flooding and Layer 2 failure modes”
EVPN can advertise known endpoints and improve convergence, but broadcast and unknown traffic still need handling. Loops, inconsistent VLAN/VNI mappings, MTU failures, and bad import policy remain possible.
“All vendor implementations behave identically”
The route model is standardized, but supported features, defaults, configuration syntax, and operational commands vary. Validate interoperability and failure behavior across the actual software and hardware versions.
Related Articles
- Start with BGP routing fundamentals for sessions, route attributes, and route exchange.
- See how overlays fit into network virtualization, including VNIs, underlays, and tunnel endpoints.
- Compare overlay and bridge models in container networking.
- Learn how controllers and programmable policy fit in software-defined networking.
Changelog
- 2026-11-08: First publication.

