Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Layer 3 Overlay

Direct answer

A Layer 3 VXLAN overlay routes between VNIs in the fabric, typically with distributed anycast gateways and an L3 VNI per VRF (symmetric IRB with EVPN).

When to use this

Use it when routing between subnets across a VXLAN EVPN fabric fails.

First 30 seconds

1. L3 overlay routes between subnets using an L3 VNI per VRF (symmetric IRB).

2. Distributed anycast gateway.

3. EVPN type 5 for prefixes.

4. Router MAC for L3 VNI.

5. Check VRF route import with RTs.

Operational verification

VRF → L3 VNI → EVPN type 2/5 → remote VTEP routing

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • L3 VNI not mapped to the tenant VRF on all leaves.
  • Anycast gateway MAC different between leaves.
  • Missing type-5 routes for external prefixes.
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS XE
Key commandshow vrf
Scope / prerequisiteUse it when routing between subnets across a VXLAN EVPN fabric fails.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
show vrf
show nve vni | include L3
show bgp l2vpn evpn route-type 5
show ip route vrf TENANT1

Remote host routes (/32) from type-2 and prefixes from type-5 should appear in the tenant VRF.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • A Layer 3 overlay routes between segments inside the overlay, usually with VRFs.
  • In VXLAN EVPN, symmetric IRB uses an L3 VNI per VRF.
  • It limits broadcast domains to each segment.
Key checks
  • show nve vni — L3 VNI (VRF)
  • show ip route vrf <vrf> — EVPN routes
  • show bgp l2vpn evpn route-type 5 — IP prefixes
ReferenceWhy it matters1 section · depth on demand

Overview

A Layer 3 overlay adds routing inside the VXLAN fabric. Each leaf acts as the default gateway for its local hosts using the same anycast gateway address everywhere, and routed traffic between subnets travels over a dedicated per-VRF VNI. This keeps routing close to the hosts and allows workloads to move between leaves without changing their gateway.

A Layer 3 overlay routes between VNIs inside the fabric. In symmetric IRB, each leaf has an anycast gateway SVI for local subnets and routes to remote subnets over a per-VRF L3 VNI; ingress and egress leaves both route.

fabric forwarding anycast-gateway-mac 0000.2222.3333
interface Vlan100
 vrf member TENANT-A
 ip address 10.100.0.1/24
 fabric forwarding mode anycast-gateway
interface Vlan3001
 vrf member TENANT-A
 ip forward                  ! L3 VNI SVI
show ip route vrf TENANT-A

Type 5 routes bring external prefixes (from border leaves) into the tenant VRF.

ReferenceImportant terms & boundaries3 sections · depth on demand

Symmetric vs asymmetric IRB

AsymmetricSymmetric
RoutingIngress VTEP onlyIngress and egress VTEP
VNIs needed on each leafAll L2 VNIsOnly local L2 VNIs + L3 VNI
ScaleLowerHigher

Most EVPN fabrics use symmetric IRB.

In depth

Layer 3 overlay: routing between subnets inside the fabric

The Catalyst 9300 BGP EVPN VXLAN guide maps each VRF to a unique Layer 3 VNI and associates the VTEP's Layer 2 VNIs with the same VRF. Traffic bridged within one subnet uses the L2 VNI; traffic routed between subnets uses the L3 VNI. The guide names two integrated routing and bridging (IRB) modes, asymmetric and symmetric.

IRB modes

ModeHow routing worksConsequence
AsymmetricThe ingress VTEP routes and bridges onto the destination L2 VNIEvery VTEP needs every VLAN and L2 VNI of the VRF
SymmetricIngress routes into the L3 VNI; egress routes from the L3 VNI to the local subnetVTEPs only need their local VLANs; scales better

Distributed anycast gateway

Every leaf has the same gateway IP and MAC for a subnet, so a host's default gateway is always its local leaf, even after it moves.

LEAF1(config)# vrf definition CORP
LEAF1(config-vrf)# rd 10.255.255.1:1
LEAF1(config-vrf)# address-family ipv4
LEAF1(config-vrf-af)# route-target export 65000:50001 stitching
LEAF1(config-vrf-af)# route-target import 65000:50001 stitching
LEAF1(config)# vlan configuration 999
LEAF1(config-vlan-config)# member vni 50001
LEAF1(config)# interface Vlan999
LEAF1(config-if)# vrf forwarding CORP
LEAF1(config-if)# ip unnumbered Loopback0
LEAF1(config-if)# no autostate
LEAF1(config)# interface Vlan20
LEAF1(config-if)# mac-address 0000.2222.3333
LEAF1(config-if)# vrf forwarding CORP
LEAF1(config-if)# ip address 10.20.0.1 255.255.255.0
LEAF1(config)# interface nve1
LEAF1(config-if)# member vni 50001 vrf CORP
LEAF1(config)# router bgp 65000
LEAF1(config-router)# address-family ipv4 vrf CORP
LEAF1(config-router-af)# advertise l2vpn evpn
LEAF1(config-router-af)# redistribute connected
LEAF1# show ip route vrf CORP 10.30.0.25
Routing entry for 10.30.0.25/32
  Known via "bgp 65000", distance 200, metric 0, type internal
  * 10.255.255.2 (default), from 10.255.0.101, via Vlan999

The host route 10.30.0.25/32 was learned from a remote leaf's EVPN route type 2 and points over the L3 VNI SVI (Vlan999).

Routes used for Layer 3 (Cisco guide)

EVPN routeUse
Type 2 with IPHost routes (/32, /128) for endpoints in the fabric
Type 5IP prefixes, such as external routes from border leaves or subnets

External connectivity

Border leaves connect the fabric's VRFs to the outside world, usually with VRF-lite (one sub-interface or VLAN per VRF) to firewalls or WAN routers, and advertise external prefixes into the fabric as type 5 routes.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

L3 VNI / symmetric IRB

Inter-subnet traffic in EVPN fabrics uses a Layer 3 VNI per VRF: the ingress VTEP routes into the L3 VNI, the egress VTEP routes out of it. Every leaf has the same anycast gateway IP/MAC for each subnet, so hosts keep their gateway when they move. Check show bgp l2vpn evpn (type-2 MAC/IP and type-5 prefix routes) and show ip route vrf <tenant>.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 7348

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → VXLAN → Layer 3 Overlay. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7348.html · confidence 94%
Confirmation

Confirm action

Continue?