Networking · Architecture › Spine-Leaf
ECMP
Cheat sheet · https://pcornel.dk/topic.php?topic=818
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 pathsshow ip cef exact-route <src> <dst>— path for one flowshow 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
| Evidence | Meaning |
|---|---|
| Equal routing cost | Paths eligible |
| RIB multipath | Multiple control-plane next hops |
| CEF adjacency set | Forwarding paths programmed |
| Interface counters | Observed 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