Pcornel
Networking · Architecture › Spine-Leaf

ECMP

Cheat sheet · https://pcornel.dk/topic.php?topic=818

Back to the Topic

Answer

Equal-Cost Multi-Path (ECMP) installs several equal-cost routes to the same destination and spreads flows across them by hashing, which spine-leaf fabrics use to load-balance across all spines.

Remember

  • ECMP spreads traffic across several equal-cost paths using a hash of packet fields.
  • Each flow stays on one path to avoid reordering.
  • It gives both load sharing and fast failover.

First checks

  • show ip route <prefix> — multiple equal paths
  • show ip cef exact-route <src> <dst> — path for one flow
  • show ip cef <prefix> detail — load-share buckets

Verify in this order

equal-cost routes → hash per flow → path

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

ECMP · architecture reference

EvidenceMeaning
Equal routing costPaths eligible
RIB multipathMultiple control-plane next hops
CEF adjacency setForwarding paths programmed
Interface countersObserved distribution over time

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=818

Confirmation

Confirm action

Continue?