Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

EIGRP vs OSPF

Direct answer

EIGRP and OSPF solve the same problem differently. OSPF is a link-state standard: every router in an area has the full map and computes paths itself. EIGRP is Cisco's advanced distance-vector protocol: routers know their neighbours' distances and keep loop-free backups.

When to use this

Use it to choose between them, or to understand a network that runs both and redistributes between them.

First 30 seconds

1. Pick one prefix: show ip route <prefix> — which protocol installed it?

2. Is that the intended one? EIGRP internal (90) beats OSPF (110).

3. Check adjacency in the owning protocol.

4. Redistributing between them → tags and distances on both sides.

5. Compare failover: does EIGRP have a feasible successor; does OSPF have an alternative path?

Operational verification

each protocol's adjacencies up → each knows the prefix → administrative distance decides the owner → redistribution controlled with tags → failover path present in the owning protocol

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS/IOS-XE first. Exact configuration syntax and feature support remain release/platform dependent. The normal UI intentionally does not compare IOS-XE/NX-OS/IOS-XR side by side.Cisco IOS / IOS XEIOS/IOS XECisco IOS XE
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS/IOS-XE first. Exact configuration syntax and feature support remain release/platform dependent. The normal UI intentionally does not compare IOS-XE/NX-OS/IOS-XR side by side. · Cisco IOS / IOS XE · IOS/IOS XE
Scope / prerequisiteUse it to choose between them, or to understand a network that runs both and redistributes between them.
What next?2 suggested next steps
Evidence0
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 Verification workflow: compare the same prefix through both pipelines Verify boundary

Use the same evidence order for a fair comparison. First show interface and protocol participation. For EIGRP, inspect show ip eigrp interfaces and show ip eigrp neighbors; for OSPF, inspect show ip ospf interface and show ip ospf neighbor. Next inspect protocol-specific path state: show ip eigrp topology for EIGRP and show ip ospf database plus relevant SPF/route context for OSPF. Then inspect the RIB with show ip route eigrp, show ip route ospf, or an exact-prefix route lookup. show ip protocols provides process, network, passive-interface, distance and redistribution context for both protocols, but it is configuration/control-plane evidence rather than prefix-level evidence. Finally verify forwarding/CEF and an end-to-end test if the claim is about packet delivery. Record the exact prefix, next hop, metric/cost, route type, administrative distance and timestamp. The key troubleshooting question is always: at which boundary does the expected state first disappear—neighbor, protocol database/topology, path selection, RIB, adjacency/CEF, or data plane?

Step 2 Failure signatures and interpretation traps Narrow the fault

Common EIGRP failure signatures include no neighbor on an expected interface, topology entries without the expected successor behavior, routes entering Active, an alternate that is not a feasible successor, or a route present in EIGRP state but absent from the RIB because another source wins. Common OSPF signatures include INIT/EXSTART/EXCHANGE adjacency stalls, FULL adjacency with a missing required LSA, a correct LSDB entry that produces an unexpected route type/cost, or an OSPF route losing RIB selection. Do not equate EIGRP Active with a healthy active route; Active means DUAL is performing a diffusing computation for that destination. Do not equate OSPF FULL with complete reachability; FULL describes adjacency/database synchronization at that neighbor boundary. Do not compare EIGRP composite metric directly with OSPF cost, and do not use administrative distance as an explanation for same-protocol path choice. If both protocols run during migration or redistribution, route feedback, seed metrics, tagging and administrative-distance changes can create behavior that neither protocol would show in isolation. Hand the exact output and topology context to ChatGPT for live diagnosis rather than encoding a large in-site troubleshooting framework.

Command lookup Jump straight to Cisco syntax
Key points

OSPF: open standard, areas, cost from bandwidth, distance 110. EIGRP: Cisco (partly published), no areas but summarisation anywhere, composite metric, distance 90 internal / 170 external, feasible successors for fast failover. Where both carry the same prefix, EIGRP wins on distance.

Key checks
  • show ip protocols — both protocols and their settings.
  • show ip route <prefix> — which protocol owns the prefix, at which distance.
  • show ip ospf neighbor / show ip eigrp neighbors — adjacencies in each.
  • show ip ospf database / show ip eigrp topology — what each protocol knows.
ReferenceWhat it is1 section · depth on demand

Mental model: what is actually being compared

EIGRP and OSPF are both interior gateway protocols, but they build and select paths from different control-plane models. EIGRP exchanges route and metric information with EIGRP neighbors, maintains a topology table, and uses DUAL to select a successor and determine whether an alternate path satisfies the feasibility condition. OSPF floods link-state advertisements inside an area, builds a synchronized link-state database, and runs SPF against that topology to calculate paths. The practical comparison is therefore not “distance-vector versus link-state” as a label; it is neighbor formation → protocol state → path calculation → RIB installation → forwarding. A healthy EIGRP neighbor or OSPF FULL adjacency shows only the neighbor boundary. It does not show the required prefix exists in the topology/LSDB, wins protocol selection, enters the RIB, resolves in CEF, or forwards traffic. When troubleshooting either protocol, keep these evidence layers separate and compare the exact prefix, interface, address family, metric inputs and route source rather than treating protocol-up as end-to-end evidence.

ReferenceHow it works1 section · depth on demand

Neighbor formation and control-plane state

EIGRP forms neighbor relationships on enabled interfaces when core parameters are compatible and exchanges routing information through EIGRP packets. Operational analysis centers on the neighbor table, the interfaces participating in EIGRP, and the topology table for the exact prefix. OSPF neighbor formation is more explicitly stateful: neighbors progress through states such as Down, Init, 2-Way, ExStart, Exchange, Loading and Full, with adjacency behavior also influenced by network type and DR/BDR roles on multiaccess segments. OSPF then synchronizes LSDB information using DBD, LSR, LSU and LSAck processing. The protocols therefore expose different intermediate evidence. In EIGRP, a stable neighbor plus a route in the topology table still requires DUAL/RIB interpretation. In OSPF, FULL shows database synchronization with that neighbor but does not show that the expected LSA was originated, flooded into the relevant area, selected by SPF or installed. Authentication, interface participation, addressing, MTU and filtering can disrupt these control-plane boundaries differently, so compare the first missing state instead of applying one generic “routing protocol down” diagnosis.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

EIGRP and OSPF solve the same problem — dynamic interior routing — with different models. OSPF is a link-state standard where every router computes paths from a shared area map; EIGRP is Cisco's advanced distance-vector protocol where routers trust neighbors' metrics and DUAL keeps loop-free backups.

AspectOSPFEIGRP
AlgorithmSPF on LSDBDUAL on topology table
HierarchyAreas (area 0 required)Summarisation anywhere, stub routers
MetricCost (bandwidth)Bandwidth + delay
Unequal-cost load balancingNoYes (variance)
Multi-vendorYesLimited (Cisco-centric)
AD11090 internal / 170 external

In multi-vendor or provider-style networks OSPF (or IS-IS) is the usual choice; EIGRP is valued in Cisco-only enterprises for simple configuration and fast convergence.

Metric and path-selection mechanics

EIGRP uses a composite metric derived from configured metric components; in normal modern deployments bandwidth and delay are the dominant inputs unless K-values are intentionally changed. DUAL selects the lowest-metric successor and can identify feasible successors whose reported distance satisfies the feasibility condition relative to the current feasible distance. A feasible successor is a loop-free backup candidate, not automatically an installed forwarding path. OSPF uses cost as its path metric and runs SPF over the LSDB. Interface cost is commonly derived from reference bandwidth and interface bandwidth unless explicitly configured, so high-speed links can collapse to equal cost if the reference bandwidth is not planned consistently. Equal-cost paths can be installed where the platform and route type allow them. These metric systems are not numerically comparable: an EIGRP metric of one value cannot be meaningfully compared to an OSPF cost of another. Administrative distance is a separate local RIB preference used when different routing sources offer the same prefix; it does not decide ordinary same-protocol EIGRP or OSPF path selection. First determine the protocol candidate, then determine whether the RIB installs it.

Redistribution and coexistence: the boundary where comparisons become operationally critical

When EIGRP and OSPF coexist, redistribution creates a policy boundary rather than merging the two protocols into one path-selection domain. Each protocol imports routes as external information according to its own metric and route-type rules. A redistributed route therefore loses the original protocol’s native metric meaning unless policy explicitly carries useful context through tags or other attributes. Seed/default metrics must be deliberate, especially for protocols whose native metric model requires values that cannot be inferred directly from the source protocol. Bidirectional redistribution can feed routes back toward their origin and requires filtering/tagging design to prevent loops or unintended preference. Administrative distance determines which source the local RIB prefers for identical prefixes, but manipulating AD can hide a redistribution design problem rather than solve it. During migration, verify one representative prefix in both protocol databases, identify where it was originated or redistributed, confirm tags/filters and compare the installed route. The safest comparison is not “which protocol wins,” but “which policy boundary created this candidate, which protocol selected it, and why did the RIB install this source?”

ReferenceConfiguration & state1 section · depth on demand

Configuration, summarization and filtering boundaries

Both protocols can advertise connected or redistributed reachability, apply policy at selected boundaries and summarize routes, but the scope and syntax differ. EIGRP configuration associates interfaces/prefixes with an EIGRP process or named address-family and can apply passive-interface behavior, summarization and route filtering according to platform capabilities. OSPF associates interfaces with an OSPF process and area, and multi-area behavior introduces ABR/ASBR roles, area types and LSA-scope rules. OSPF summarization is tied to area/external boundaries rather than being a generic per-interface equivalent of EIGRP summarization. Filtering also has different semantics: suppressing a route from the local RIB is not necessarily the same as preventing topology/LSA information from existing elsewhere. In both protocols, passive-interface is primarily an adjacency-control mechanism while the connected network can still be advertised depending on the protocol/configuration model. A comparison should therefore state exactly what is being controlled: neighbor formation, route advertisement, topology propagation, RIB installation or forwarding. Do not translate one protocol’s syntax mechanically into the other without preserving that boundary.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Topic scope contract

Scope at a glance

What this Topic covers and what it does not. A missing item is not a compatibility statement.

Covers
✓ EIGRP versus OSPF control-plane and path-selection mechanics
✓ IOS/IOS-XE verification boundaries and output interpretation
✓ convergence, summarization/filtering and redistribution comparison
Does not cover
✕ vendor-neutral protocol recommendations without topology/design context
✕ live incident root-cause diagnosis without current output and topology evidence
Assumes
→ basic IPv4/IPv6 routing, RIB/FIB and interface reachability concepts are understood
Evidence boundary

This does not prove…

Healthy-looking observations are bounded explicitly so a partial success is not mistaken for end-to-end proof.

ObservationEIGRP neighbor is present

Does not prove: The required prefix is a successor, installed in the RIB or forwarding.

Verify next: Inspect the exact prefix in the EIGRP topology table, RIB and CEF.
ObservationOSPF neighbor is FULL

Does not prove: The required LSA exists or the intended route is installed and forwarding.

Verify next: Inspect LSDB, exact-prefix OSPF route and forwarding state.
ObservationOne protocol has a numerically lower metric

Does not prove: It is preferred over the other protocol because EIGRP metric and OSPF cost are different scales.

Verify next: Determine each protocol candidate, then use administrative distance/RIB evidence for cross-source preference.
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Cisco IOS / IOS XE platform-dependent canonical exampleMinimal side-by-side lab/reference shape showing equivalent internal reachability domains without redistribution.

Assumptions: Interface addressing already works. Use platform-appropriate process/address-family syntax and replace prefixes/interfaces with the actual design.

! EIGRP example
router eigrp 100
 network 10.10.0.0 0.0.255.255
 passive-interface default
 no passive-interface GigabitEthernet0/0
!
! OSPF example
router ospf 100
 router-id 10.255.0.1
 passive-interface default
 no passive-interface GigabitEthernet0/1
 network 10.20.0.0 0.0.255.255 area 0

Expected output

Cisco IOS / IOS XE platform-dependentshow ip protocols

Expected state: The intended EIGRP and OSPF processes show the expected routing sources, passive-interface/participation context, administrative distance and redistribution state.

Routing Protocol is "eigrp 100"
  ...
Routing Protocol is "ospf 100"
  ...
This is process-level known-good shape only. Prove neighbors, protocol database/topology, exact-prefix RIB installation and forwarding separately.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
EIGRP vs OSPFEIGRP OSPF comparisoncompare EIGRP and OSPFDUAL vs SPFEIGRP metric vs OSPF cost
Embedded reference data

Quick lookup tables

EIGRP vs OSPF · operational comparison

Protocol-model, metric, convergence and verification boundaries for fast lookup.

DimensionEIGRPOSPFOperational boundary
Control modelAdvanced distance-vector / DUALLink-state / SPFDifferent databases and algorithms
Protocol numberIP 88IP 89Neither uses TCP/UDP for routing packets
Main path metricComposite metricCostValues are not comparable across protocols
Loop-free alternateFeasible successor via feasibility conditionSPF-derived alternate / ECMP as applicableAlternate existence ≠ installed forwarding path
Topology stateEIGRP topology tableLSDB per areaProtocol state precedes RIB installation
Hierarchy / scaleQuery scope, summarization, stubsAreas, ABRs, LSA scopeDifferent containment mechanisms
Neighbor proofEIGRP neighbor presentOSPF adjacency state, often FULLNeighbor state does not prove route installation
RIB source preferenceAdministrative distance after EIGRP selects candidateAdministrative distance after OSPF selects candidateAdministrative distance compares sources, not native path metrics
IPv6 modelEIGRP for IPv6 / named mode depending platformOSPFv3Verify address-family/platform applicability
RedistributionExternal EIGRP route with seeded metric/policyExternal OSPF LSA/route type with metric/policyTag/filter feedback prevention explicitly
Depth when you need it

Deep reference

Design & tradeoffs

Convergence, hierarchy and scale

EIGRP convergence is strongly influenced by whether DUAL already has a feasible successor. If the successor fails and a feasible successor exists, the router can transition to that loop-free alternate without an active diffusing computation for the destination. If no feasible successor exists, DUAL may query neighbors and the route can enter Active state while a new loop-free path is determined. OSPF reacts to topology change by updating link-state information and running SPF calculations; area design limits the flooding/SPF scope and introduces ABR behavior between Area 0 and non-backbone areas. These are different scaling mechanisms: EIGRP relies on query boundaries, summarization and topology knowledge, while OSPF explicitly uses hierarchical areas and LSDB scope. Timer tuning alone is not a complete convergence design for either protocol; failure detection, alternate-path availability, CPU/control-plane load and the resulting RIB/FIB update all matter. BFD may improve failure detection where supported, but fast detection is only the first step—the protocol still needs a valid alternate and the forwarding plane must converge.

Confirmation

Confirm action

Continue?