Equal Cost Multi-Path (ECMP) is a routing technique that allows a router to use multiple paths to the same destination when they all have the same cost. Instead of keeping only one route, the router installs every equal-cost path into the routing table and shares the traffic between them.
To understand this concept, let’s use the following OSPF topology where every router advertises its directly connected networks.

Figure 1 – OSPF equal-cost paths from R1 to reach 192.168.2.0/24
In this case, R1 can reach the destination 192.168.2.0/24 using two different paths:
R1 → R2 → R4
R1 → R3 → R4
Answer the question below
How many paths can a router use with ECMP?
Before ECMP is applied, routers follow a strict order when selecting routes:
Prefix Length – The longest prefix match is always preferred. Example: a /24 is preferred over a /16.
Administrative Distance (AD) – If multiple routing protocols advertise the same prefix, the one with the lowest AD is selected. Example: OSPF (AD = 110) is preferred over RIP (AD = 120).
Metric – If the routes come from the same protocol and have the same AD, the lowest metric wins.
Example: in OSPF, the cost is based on the bandwidth of the links.Equal Metric – If multiple routes have the same prefix, the same AD, and the same metric, they are all installed → ECMP is applied.
Answer the question below
Which value must be the same for ECMP to be applied?
Now let’s go back to our topology.
40 % Complete: you’re making great progress
Unlock the rest of this lesson
If you’d like to continue your CCNA journey, simply create your free account.
Access all CCNA lessons
Practice with hands-on labs
Train with Practice exams and Quizzes
Progress tracking in your dashboard
Made by network engineers - CCNP certified
learners globally
Equal Cost Multi-Path (ECMP)
Equal Cost Multi-Path (ECMP) enables routers to use multiple equal-cost routes simultaneously. In this lesson, you’ll learn how ECMP works in practice and why it is valuable across different routing protocols.