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
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 Cost – 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
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, create your free account now.
Access all free CCNA lessons
Practice with quizzes and level test
Progress tracking in your dashboard
Made by network engineers - CCNP certified
Create your Free Account1151 learners continued their CCNA journey this month