30% off every course until Sunday, October 11. Our biggest update yet, and we'd like you to try it. Applied automatically at checkout.

Choose your certification
Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.1.5. Metric

The metric determines the best path when multiple routes exist via the same routing protocol. Lower metric = preferred.

ProtocolMetric Based On
RIPHop count
OSPFCost (bandwidth-based)
EIGRPBandwidth + delay (composite)

How OSPF totals its cost: every interface has a cost of reference bandwidth / interface bandwidth, rounded down with a minimum of 1, and the default reference is 100 Mbps. A route's metric is the sum of the outgoing interface costs along the path, including the interface on the router that owns the destination network. Because of the 100 Mbps default, FastEthernet, 1 Gbps and 10 Gbps interfaces all cost 1, so OSPF cannot tell them apart; raising the reference with auto-cost reference-bandwidth (entered under router ospf, in Mbps, set the same on every router) fixes that. When two paths to a prefix have the same total cost, OSPF installs both and load-shares across them (up to 4 equal-cost paths by default in IOS, set with maximum-paths); it does not split traffic unequally.

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•20 professional certifications