Courseiva
Question 1,469 of 1,389
IP RoutinghardMultiple ChoiceObjective-mapped

CCNA Longest prefix match in routing Practice Question

Exhibit

R1# show ip route
O    10.60.4.0/24 [110/20] via 192.0.2.2
S    10.60.4.16/28 [1/0] via 192.0.2.6
D    10.60.0.0/16 [90/30720] via 192.0.2.10

Destination being tested: 10.60.4.17

A router has the following routes in its routing table: a static route to 10.60.4.16/28, an OSPF route to 10.60.4.0/24, and an EIGRP route to 10.60.0.0/16. Which route will be used for a packet destined to 10.60.4.17?

⚠ Common exam trap

Remember, the longest prefix match rule is crucial; don't assume broader prefixes are better.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The static route to 10.60.4.16/28

The route used will be the route with the longest matching prefix. In practical terms, 10.60.4.17 falls inside the /28 route shown, and that is more specific than the broader /24 and /16 alternatives. Because specificity comes first, the /28 route wins. This is a clean route-table interpretation problem that mirrors actual exam-style thinking very closely.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The static route to 10.60.4.16/28

    Why this is correct

    The destination address 10.60.4.17 falls within all three advertised prefixes, but the router selects the route with the longest prefix match. The static route to 10.60.4.16/28 uses a 28-bit subnet mask, which is longer than the 24-bit OSPF route and the 16-bit EIGRP route. Because this /28 prefix provides the most specific match for the destination, it overrides the other less-specific entries in the routing table.

  • The OSPF route to 10.60.4.0/24

    Why it's wrong here

    The OSPF route to 10.60.4.0/24 is not selected because the packet’s destination 10.60.4.17 falls within the 10.60.4.16/28 static route, which offers a longer prefix length (28 bits) and therefore a more specific match, overriding the OSPF route’s 24-bit prefix. This option is tempting because OSPF is a dynamic, link-state protocol commonly used for internal routing, and the 10.60.4.0/24 subnet does encompass 10.60.4.17; it would be correct if no static route with a longer prefix existed for that destination.

    When this WOULD be correct

    If the question asked which route would be used for a destination within the 10.60.4.0/24 subnet without a more specific static route, then the OSPF route to 10.60.4.0/24 would be the correct answer, as it would be the best match for any address in that range.

  • The EIGRP route to 10.60.0.0/16

    Why it's wrong here

    The EIGRP route to 10.60.0.0/16 is indeed a valid match for the destination 10.60.4.17, as the /16 mask encompasses this address. However, the router's tie-breaker for overlapping routes is the longest prefix length, not administrative distance or metric. With only 16 bits of subnet mask, this route is the least specific of the three candidates, so it is never chosen when a longer-prefix route like the /28 static route exists for the same destination.

    When this WOULD be correct

    If the question asked which route would be used if the static route to 10.60.4.16/28 were removed, then the EIGRP route to 10.60.0.0/16 would be the correct answer, as it would be the next best match for the destination.

  • No route at all

    Why it's wrong here

    The device cannot discard the packet as 'no route' because the routing table in the exhibit contains multiple entries whose subnet masks include the destination 10.60.4.17. Forwarding decisions are based on longest prefix match, and the presence of the 10.60.4.16/28 static route guarantees that a valid next hop exists. A 'no route' condition would occur only if the destination did not match any prefix in the routing table, which is clearly not the case here.

    When this WOULD be correct

    In a scenario where the routing table has been cleared or all routes have been removed, a question could ask if there are any routes available for destination 10.60.4.17. In this case, the correct answer would be 'No route at all' as there would be no valid paths to the destination.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.

The static route to 10.60.4.16/28Correct answer

Why this is correct

The destination address 10.60.4.17 falls within all three advertised prefixes, but the router selects the route with the longest prefix match. The static route to 10.60.4.16/28 uses a 28-bit subnet mask, which is longer than the 24-bit OSPF route and the 16-bit EIGRP route. Because this /28 prefix provides the most specific match for the destination, it overrides the other less-specific entries in the routing table.

The OSPF route to 10.60.4.0/24Wrong answer — click to see why

Why this is wrong here

This option is wrong because the OSPF route to 10.60.4.0/24 does not directly match the destination 10.60.4.17, which falls under the static route to 10.60.4.16/28. OSPF would not be preferred if a more specific static route exists.

★ When this WOULD be the correct answer

If the question asked which route would be used for a destination within the 10.60.4.0/24 subnet without a more specific static route, then the OSPF route to 10.60.4.0/24 would be the correct answer, as it would be the best match for any address in that range.

Why candidates choose this

Candidates might choose this option due to a misunderstanding of OSPF's role in routing, believing that OSPF routes are always preferred over static routes, especially when they see a broader subnet that includes the destination.

The EIGRP route to 10.60.0.0/16Wrong answer — click to see why

Why this is wrong here

The EIGRP route to 10.60.0.0/16 is not used for the destination 10.60.4.17 because it does not match the more specific subnet of 10.60.4.16/28, which is preferred in routing decisions.

★ When this WOULD be the correct answer

If the question asked which route would be used if the static route to 10.60.4.16/28 were removed, then the EIGRP route to 10.60.0.0/16 would be the correct answer, as it would be the next best match for the destination.

Why candidates choose this

Candidates may choose this option due to familiarity with EIGRP and its broader subnet coverage, mistakenly believing it would be preferred over a more specific static route.

No route at allWrong answer — click to see why

Why this is wrong here

This option is wrong because there is a valid static route to the destination 10.60.4.17 via the static route to 10.60.4.16/28, making it reachable. Therefore, stating 'no route at all' is incorrect in this context.

★ When this WOULD be the correct answer

In a scenario where the routing table has been cleared or all routes have been removed, a question could ask if there are any routes available for destination 10.60.4.17. In this case, the correct answer would be 'No route at all' as there would be no valid paths to the destination.

Why candidates choose this

Candidates may choose this option due to a misunderstanding of the routing table's contents or a lack of familiarity with static versus dynamic routes, leading them to believe that if a specific route isn't mentioned, none exist.

Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

R1 R2 R3 R4 10 100 10 100 OSPF picks R1→R2→R4 (cost 20) over R1→R3→R4 (cost 200)

Quick reference

Routing Protocol Comparison

ProtocolMetricMax HopsAlgorithmType
RIP v2Hop count15Bellman-FordDistance vector
OSPFCost (bandwidth)UnlimitedDijkstra (SPF)Link state
EIGRPComposite metricUnlimitedDUALHybrid
IS-ISCostUnlimitedDijkstraLink state
BGPPolicy / attributesUnlimitedPath vectorPath vector

RIP's 15-hop limit makes it unsuitable for large networks. OSPF and EIGRP dominate modern enterprise deployments.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: May 17, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This 200-301 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-301 exam.