Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Metric · Forwarding Decision

Direct 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).

When to use this

Use it when a protocol prefers the wrong path, or traffic is not shared across links that should be equal.

First 30 seconds

1. show ip route <prefix> — which next hops, with which metric?

2. Wrong path → compare the metric along both paths (cost per interface).

3. Expected ECMP missing → the metrics differ slightly; compare them hop by hop.

4. Adjust the cost or delay on the interface, consistently.

5. Check the route again.

Operational verification

routes to the same prefix from one protocol → metric computed along each path → lowest installed → equal metrics installed together (ECMP) → CEF shares the load

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 · Cisco IOS XE · IOS/IOS XE
Key commandshow ip route 10.1.1.0
Scope / prerequisiteUse it when a protocol prefers the wrong path, or traffic is not shared across links that should be equal.
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.

2 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 Commands Verify boundary
show ip route 10.1.1.0          ! [AD/metric] in brackets
show ip ospf interface brief    ! OSPF cost per interface
show ip eigrp topology 10.1.1.0/24
Step 2 Common mistakes Narrow the fault
  • Comparing metrics from different protocols.
  • OSPF reference bandwidth left at 100 Mb/s, so all fast links cost 1.
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

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.

Key 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.
ReferenceHow it works1 section · depth on demand

What it is

A metric is the routing protocol's cost for a path; the lowest metric wins among routes from the same protocol for the same prefix. Metrics are not comparable between protocols — that is what administrative distance is for.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Metric in the forwarding decision

The metric chooses between paths that one protocol knows for the same prefix. If several paths tie, they're all installed and the router load-shares. Cisco's IOS XE routing guide says most IP routing protocols install up to four parallel routes by default, static routes up to six and BGP one, adjustable with maximum-paths; traffic-share min restricts forwarding to the minimum-metric paths.

Where the metric fits

DecisionUses
Which protocol's route is installedAdministrative distance
Which path within that protocolMetric
Which installed route matches a packetLongest prefix match
Which equal path a flow takesCEF load-sharing hash

Equal-cost multipath example

R1# show ip route 10.60.0.0
Routing entry for 10.60.0.0/16
  Known via "ospf 1", distance 110, metric 3, type intra area
  Routing Descriptor Blocks:
  * 10.0.12.2, from 10.255.0.2, via GigabitEthernet0/0/1
      Route metric is 3, traffic share count is 1
    10.0.13.2, from 10.255.0.3, via GigabitEthernet0/0/2
      Route metric is 3, traffic share count is 1
R1(config)# router ospf 1
R1(config-router)# maximum-paths 8
R1# show ip cef exact-route 10.10.0.25 10.60.4.9
10.10.0.25 -> 10.60.4.9 =>IP adj out of GigabitEthernet0/0/2, addr 10.0.13.2

Unequal paths

ProtocolUnequal-cost support
OSPFNo: only equal-cost paths
EIGRPYes, with variance; traffic shared in proportion to metric
BGPNot by default; options such as maximum-paths with multipath relaxations

Changing which path wins

ProtocolLever
OSPFip ospf cost per interface
EIGRPInterface delay (preferred over bandwidth)
StaticSeveral static routes with different distances

Load sharing is per flow by default, so a single flow always uses one path.

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

A router can learn the same destination from several sources, and it uses two different numbers to choose. Within one routing protocol, the metric decides which path is best. Between different protocols, administrative distance decides which source is trusted most, because their metrics cannot be compared. Understanding both explains most "why is the router using this path?" questions, and it is also the basis for backup routes that only take over when the primary disappears.

Metrics rank routes within the same protocol; administrative distance ranks between protocols.

ProtocolMetricAD
Connected / static—0 / 1
eBGPPath attributes20
EIGRPBandwidth + delay90 (internal)
OSPFCost110
IS-ISMetric115
RIPHop count120
iBGPPath attributes200

Equal-metric paths are installed for ECMP (maximum-paths). Floating static routes use a higher AD than the dynamic protocol to act as backup.

Metrics by protocol

ProtocolMetric
RIPHop count (max 15)
OSPFCost = reference bandwidth ÷ interface bandwidth
EIGRPBandwidth + delay (by default)
IS-ISInterface metric (default 10)
BGPNo single metric; path attributes (MED is one)

Equal metrics give ECMP (maximum-paths).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 Routing → Forwarding Decision → Metric. 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%
Confirmation

Confirm action

Continue?