Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Leaf

Direct answer

A leaf switch connects servers, storage and services (or border devices) and uplinks to every spine; any two leaves are always two hops apart.

When to use this

Use it when connecting servers and services in a data-center fabric, or when one rack loses connectivity.

First 30 seconds

1. show lldp neighbors — one uplink to every spine?

2. show bgp l2vpn evpn summary — sessions to every spine established?

3. show ip route <other-leaf-loopback> — one path per spine (ECMP)?

4. show nve peers — VTEP peers up.

5. show nve vni — the server's VLAN mapped to the right VNI.

Operational verification

uplink to every spine → underlay routing sessions up → ECMP to every other leaf → overlay (VXLAN/EVPN) peers up → host VLAN mapped to VNI → servers reach each other

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when connecting servers and services in a data-center fabric, or when one rack loses connectivity.
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.

4 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 Layered verification and original-test closure Verify boundary

Leaf — Verify every intended spine adjacency, the local endpoint/VLAN/VNI mapping and at least one tenant flow across different spines, then confirm symmetric return reachability.

Step 2 Verification and forwarding interpretation Verify boundary

Leaf design carries the local workload context: access ports, VLAN/VRF/VNI mapping, anycast/default gateway functions and policy integration may exist here depending on the architecture. Every leaf should maintain the expected spine adjacencies so endpoint reachability does not depend on one transit node. Capacity is bounded by both host-facing demand and aggregate spine uplinks. Verify every leaf has the expected set of spine adjacencies and that equivalent prefixes install with the intended ECMP next-hop set. Inspect CEF/forwarding entries, interface counters and path diversity rather than relying on routing-neighbor state alone. For east-west flows, compare source and destination leaf reachability, underlay next-hop availability and observed load distribution over time; per-flow hashing can make one flow use a single path even when ECMP is healthy. If an overlay is present, verify VTEP/control-plane state separately from underlay routing so one layer does not falsely show the other.

Step 3 Observation → implication → next check Narrow the fault

Leaf — If only some destinations fail, compare all leaf-to-spine uplinks and ECMP paths; if local endpoints fail, check VLAN/VNI/host attachment first. If underlay works but tenant reachability fails, move to overlay state.

Step 4 Common mistakes Narrow the fault
  • Leaf-to-leaf links outside a vPC/MLAG pair.
  • Single uplink per leaf.
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
  • Leaf switches connect servers, storage and services, and uplink to every spine.
  • Leaves usually act as VTEPs in VXLAN fabrics.
  • Border leaves connect the fabric to external networks.
Key checks
  • show lldp neighbors / show cdp neighbors — an uplink to every spine.
  • show bgp l2vpn evpn summary (or show ip ospf neighbor) — sessions to every spine.
  • show ip route <leaf-loopback> — ECMP paths via every spine.
  • show nve peers — VXLAN tunnels to other leaves.
  • show nve vni — VLAN-to-VNI mapping on host ports.
ReferenceHow it works1 section · depth on demand

Operational mechanics and ownership

Leaf — A leaf switch terminates endpoint/server attachment and connects northbound to multiple spines; in a routed fabric it normally owns local subnets/VTEPs while spines provide transit. Leaf health depends on southbound endpoint state and northbound fabric reachability. A server-facing port can be healthy while one ECMP uplink or overlay adjacency is broken.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

The leaf: where servers and services connect

Cisco's MSDC white paper describes leaves as top-of-rack switches with servers on their downlinks, and border leaves (usually a dedicated pair) for connectivity to external domains. Server subnets are local to one leaf or a leaf pair, and each leaf uplinks to every spine.

Leaf types

TypeConnects
Server leafServers, hypervisors, storage
Border leafWAN, Internet, firewalls, campus (external domains)
Service leafLoad balancers, firewalls, other appliances

Leaf configuration (eBGP IP fabric example)

LEAF101(config)# feature bgp
LEAF101(config)# router bgp 65101
LEAF101(config-router)# router-id 10.255.1.101
LEAF101(config-router)# address-family ipv4 unicast
LEAF101(config-router-af)# network 10.255.1.101/32
LEAF101(config-router-af)# network 10.101.0.0/24
LEAF101(config-router-af)# maximum-paths 8
LEAF101(config-router)# neighbor 10.1.1.0 remote-as 65000
LEAF101(config-router-neighbor)# address-family ipv4 unicast
LEAF101(config-router)# neighbor 10.1.2.0 remote-as 65000
LEAF101(config-router-neighbor)# address-family ipv4 unicast
LEAF101# show ip route 10.102.0.0/24
10.102.0.0/24, ubest/mbest: 4/0
    *via 10.1.1.0, [20/0], bgp-65101, external, tag 65000
    *via 10.1.2.0, [20/0], bgp-65101, external, tag 65000

ASN schemes (white paper)

SchemeASNsNote
Multi-ASEach leaf or leaf pair its own ASN; all spines share oneStandard eBGP loop prevention works
Dual-ASAll leaves in a pod share one ASN; spines per pod their ownNeeds as-override on the spine or allowas-in on the leaf

Private ASNs 64512–65534 are used, and NX-OS supports 4-byte ASNs.

Oversubscription (white paper example)

48 × 25G downlinks and 8 × 100G uplinks give 1.5:1. AI and storage fabrics often aim for 1:1.

Dual-homed servers

Servers usually connect to a leaf pair (vPC or EVPN multihoming), so a leaf failure or upgrade doesn't disconnect them.

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.

Quick reference

Leaf switches connect endpoints — servers, storage, firewalls, load balancers — and uplink to every spine. In VXLAN EVPN fabrics, leaves are VTEPs and host the anycast gateways for their subnets; border leaves connect to external networks.

Leaf typeConnects
Server/compute leafHosts, often in vPC/MLAG pairs
Service leafFirewalls, load balancers
Border leafWAN, internet, other data centres

Adding leaves increases port capacity without changing the path length between endpoints.

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

Architecture role and state model

Leaf design carries the local workload context: access ports, VLAN/VRF/VNI mapping, anycast/default gateway functions and policy integration may exist here depending on the architecture. Every leaf should maintain the expected spine adjacencies so endpoint reachability does not depend on one transit node. Capacity is bounded by both host-facing demand and aggregate spine uplinks. A spine-leaf fabric is a Clos-style routed topology in which leaf switches provide endpoint or service attachment and each leaf normally reaches every spine through routed links. Spines provide transit across the fabric and should not become endpoint attachment points. The topology is built to create many equal-cost paths and predictable hop count for east-west traffic. Underlay routing and ECMP distribute reachability, while any overlay or endpoint identity system is a separate layer. Physical connectivity, routing adjacency, ECMP installation and overlay state must therefore be interpreted independently.

Failure domains and technical boundaries

Leaf design carries the local workload context: access ports, VLAN/VRF/VNI mapping, anycast/default gateway functions and policy integration may exist here depending on the architecture. Every leaf should maintain the expected spine adjacencies so endpoint reachability does not depend on one transit node. Capacity is bounded by both host-facing demand and aggregate spine uplinks. Spine-leaf is not automatically non-blocking, lossless or free of bottlenecks. Oversubscription, failed uplinks, uneven hashing and asymmetric endpoint placement can still concentrate traffic. ECMP does not split every single flow across every path, and equal route count does not guarantee equal byte distribution. A leaf-to-spine adjacency being up does not show all prefixes, MTU-dependent traffic or overlays work. Keep topology symmetry, underlay route state, ECMP forwarding, capacity and overlay/service outcome as separate evidence layers.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Leaf design carries the local workload context: access ports, VLAN/VRF/VNI mapping, anycast/default gateway functions and policy integration may exist here depending on the architecture. Every leaf should maintain the expected spine adjacencies so endpoint reachability does not depend on one transit node. Capacity is bounded by both host-facing demand and aggregate spine uplinks. Build the fabric around symmetry and repeatability. Use consistent point-to-point addressing or unnumbered design, deterministic routing policy, identical MTU expectations and enough spine connectivity that a leaf can lose a path without partitioning the fabric. Keep endpoint VLAN/VRF or overlay functions at the leaf boundary rather than leaking attachment semantics into spines. ECMP should be enabled by equal routing cost and supported hashing, not by static assumptions about one preferred spine. Capacity planning must account for oversubscription, uplink count, failure scenarios and traffic locality rather than only aggregate port speed.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Architecture → Enterprise Network Design → Spine-Leaf → Leaf. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

Leaf · architecture reference

Compact architecture role, forwarding and failure-domain reference for fast lookup.

PropertyLeaf reference
SouthboundEndpoints/services
NorthboundSpine uplinks
Policy/segmentationCommon attachment boundary
ResilienceMultiple spine paths
Confirmation

Confirm action

Continue?