Use it when connecting servers and services in a data-center fabric, or when one rack loses connectivity.
Leaf
A leaf switch connects servers, storage and services (or border devices) and uplinks to every spine; any two leaves are always two hops apart.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Layered verification and original-test closure Verify boundary
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
Step 4 Common mistakes Narrow the fault
- Leaf-to-leaf links outside a vPC/MLAG pair.
- Single uplink per leaf.
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.
- 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.
show lldp neighbors/show cdp neighbors— an uplink to every spine.show bgp l2vpn evpn summary(orshow 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
| Type | Connects |
|---|---|
| Server leaf | Servers, hypervisors, storage |
| Border leaf | WAN, Internet, firewalls, campus (external domains) |
| Service leaf | Load 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)
| Scheme | ASNs | Note |
|---|---|---|
| Multi-AS | Each leaf or leaf pair its own ASN; all spines share one | Standard eBGP loop prevention works |
| Dual-AS | All leaves in a pod share one ASN; spines per pod their own | Needs 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.
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 type | Connects |
|---|---|
| Server/compute leaf | Hosts, often in vPC/MLAG pairs |
| Service leaf | Firewalls, load balancers |
| Border leaf | WAN, internet, other data centres |
Adding leaves increases port capacity without changing the path length between endpoints.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Quick lookup tables
Leaf · architecture reference
Compact architecture role, forwarding and failure-domain reference for fast lookup.
| Property | Leaf reference |
|---|---|
| Southbound | Endpoints/services |
| Northbound | Spine uplinks |
| Policy/segmentation | Common attachment boundary |
| Resilience | Multiple spine paths |