Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Layer 2 Overlay

Direct answer

A Layer 2 VXLAN overlay stretches a VLAN (a bridge domain per VNI) across a routed underlay, so hosts in different racks or sites share one subnet.

When to use this

Use it when stretching VLANs across a VXLAN fabric or MACs are not learned between VTEPs.

First 30 seconds

1. L2 overlay stretches VLANs across the fabric via L2 VNIs.

2. EVPN type 2 routes carry MAC/IP.

3. BUM via multicast or ingress replication.

4. ARP suppression reduces flooding.

5. Map VLAN to VNI consistently.

Operational verification

VLAN → L2 VNI → EVPN type 2 → remote VTEP

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Route targets or RDs mismatched between leaves.
  • Missing member vni under NVE.
  • Ingress replication configured on one leaf and multicast on another.
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 / IOS XE
Key commandshow nve vni
Scope / prerequisiteUse it when stretching VLANs across a VXLAN fabric or MACs are not learned between VTEPs.
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 nve vni
show l2route evpn mac all
show bgp l2vpn evpn route-type 2
show mac address-table vlan 10

Remote MACs should appear with the remote VTEP as next hop.

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 2 overlay extends Ethernet segments across a routed underlay.
  • Endpoints in different locations share one broadcast domain.
  • BUM traffic is replicated via multicast or ingress replication.
Key checks
  • show nve vni — L2 VNIs
  • show l2route evpn mac all — MACs learned via EVPN
  • show mac address-table vlan <vlan> — local and remote MACs
ReferenceWhat it is1 section · depth on demand

How it works

A Layer 2 VXLAN overlay maps a VLAN to a VNI. The ingress VTEP encapsulates the Ethernet frame in UDP 4789 and sends it to the remote VTEP; BUM traffic goes by underlay multicast or ingress replication, or is reduced by an EVPN control plane that distributes MAC/IP routes.

ReferenceImportant terms & boundaries2 sections · depth on demand

Replication options

MethodHow BUM traffic is sent
Ingress replication (BGP EVPN)Unicast copy to each remote VTEP
Underlay multicastOne multicast group per VNI or range

Ingress replication is simpler; multicast scales better with many VTEPs and heavy BUM traffic.

In depth

Layer 2 VNI on Catalyst 9000 (IOS XE) — configuration pattern

l2vpn evpn
 replication-type ingress
 router-id Loopback1
l2vpn evpn instance 10 vlan-based
 encapsulation vxlan
!
vlan configuration 10
 member evpn-instance 10 vni 10010
!
interface nve1
 no ip address
 source-interface Loopback1
 host-reachability protocol bgp
 member vni 10010 ingress-replication
!
router bgp 65001
 address-family l2vpn evpn
  neighbor 10.255.0.1 activate
  neighbor 10.255.0.1 send-community both

The existing example on this page uses NX-OS syntax; the concepts are the same.

EVPN route types that build the overlay (RFC 8365 with RFC 7432)

Route typeCarriesUsed for
Type 2 — MAC/IPMAC (and optionally IP) behind a VTEP, with VNIKnown unicast forwarding, ARP suppression
Type 3 — Inclusive multicast"I am a VTEP for VNI 10010"Building the BUM replication list
Type 5 — IP prefixRouted prefixesL3 VNI (not needed for pure L2)

Verify from control plane to data plane

StepCommandExpected
NVE peersshow nve peersRemote VTEP loopbacks Up
VNI stateshow nve vniVNI 10010 Up, mode, BD/VLAN 10
EVPN instanceshow l2vpn evpn evi 10 detailRD/RT and VNI
Remote MACsshow l2vpn evpn mac evi 10MACs with next hop = remote VTEP
BGP routesshow bgp l2vpn evpn route-type 2Type 2 routes from each leaf
MAC tableshow mac address-table vlan 10Remote MACs pointing to nve1

Typical breaks

  • No Type 3 route from a leaf → that leaf receives no flooded ARP; the first packet to a silent host fails.
  • RT mismatch → routes exist in BGP but are not imported into the EVI.
  • Duplicate MAC detection triggered by a loop or host move storm freezes a MAC; check show l2vpn evpn mac duplicate.
  • Underlay MTU too small for VXLAN overhead.
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

L2 VNI example (NX-OS / EVPN)

vlan 10
  vn-segment 10010
interface nve1
  source-interface loopback1
  host-reachability protocol bgp
  member vni 10010
    ingress-replication protocol bgp
evpn
  vni 10010 l2
    rd auto
    route-target both auto

Documented example, not captured output. Check with show nve peers, show nve vni, show l2route evpn mac all.

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 2 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?