Metric
Cheat sheet · https://pcornel.dk/topic.php?topic=1072
Answer
The metric decides between routes to the same prefix from the same routing protocol: OSPF cost, EIGRP composite metric, hop count in RIP. The lowest wins; equal metrics can share the load (ECMP).
Remember
Metrics are compared only within one protocol; across protocols, administrative distance decides. OSPF cost comes from interface bandwidth — set auto-cost reference-bandwidth the same on all routers. Equal-cost paths appear as several next hops for one prefix.
First checks
show ip route <prefix>— metric in brackets[110/20]and every next hop.show ip ospf interface brief— OSPF cost per interface.show ip eigrp topology <prefix>— EIGRP metrics per path.show ip cef <prefix> detail— the paths used for forwarding.
Commands
ip ospf cost
Verify in this order
routes to the same prefix from one protocol → metric computed along each path → lowest installed → equal metrics installed together (ECMP) → CEF shares the load
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1072