Courseiva
Network Services and SecuritymediumMultiple ChoiceObjective-mapped

CCNA Network Services and Security Practice Question

R1 receives an OSPF route to 10.55.0.0/16 and already has a static route to 10.55.10.0/24. Which route will be used for traffic sent to 10.55.10.25?

⚠ Common exam trap

Remember that the longest-prefix match rule takes precedence over administrative distance when routes have different prefix lengths.

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 /24 route, because it is the longest-prefix match.

The static /24 route is more specific than the OSPF /16 route, so longest-prefix match wins. Administrative distance is only compared among routes to the same prefix length.

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 OSPF /16 route, because dynamic routes override static routes learned later.

    Why it's wrong here

    Dynamic protocols do not override static routes in the forwarding decision; route preference is determined first by longest-prefix match, and then by administrative distance only when two routes have the same prefix length. Here, the OSPF /16 route is less specific than the static /24 route, so it loses the longest-match comparison regardless of how recently it was learned. Even if the OSPF route was received after the static route, it cannot displace a more specific static route.

    When this WOULD be correct

    In a scenario where the question states that OSPF routes are configured with a higher administrative distance than static routes, the OSPF /16 route could override the static route. For example, if the static route had an administrative distance of 200 and the OSPF route had an administrative distance of 110, the OSPF route would be used.

  • The static /24 route, because it is the longest-prefix match.

    Why this is correct

    The router performs a longest-prefix-match lookup in its forwarding table, and 10.55.0.0/24 has a longer prefix (more specific) than 10.55.0.0/16. Because the static route matches more bits of the destination address, it is the best route for any traffic destined to that subnet. This rule takes precedence over administrative distance or route source, so the /24 static route is always selected over the /16 OSPF route.

  • Both routes equally, because they point to the same major network.

    Why it's wrong here

    Both routes cannot be used equally because longest-prefix match dictates that only the /24 route is used for packets destined to 10.55.x.x within that subnet. Equal-cost load balancing only applies when multiple routes have the same prefix length and same metric; these routes have different lengths. The concept of a major network boundary does not cause equal-cost behavior, as routing decisions are always based on prefix length and not on classful addressing.

    When this WOULD be correct

    In a different scenario where both routes are configured with equal administrative distances and no specific prefix matching rules apply, a question might ask which route would be used if both were equally preferred. In such a case, the answer could be that both routes are considered equally valid for traffic to the same major network.

  • Neither route, because overlapping routes are invalid.

    Why it's wrong here

    Overlapping IPv4 routes are entirely normal and valid: a router can simultaneously hold a /16 and a /24 that cover the same address space. The presence of both routes does not create a conflict or invalidate either route; they simply coexist in the RIB. The forwarding process resolves the overlap by selecting the longest matching prefix, so both routes remain valid entries in the routing table.

    When this WOULD be correct

    In a different scenario, if the question stated that the routing table had a configuration that explicitly marked overlapping routes as invalid or if the router was configured to reject any overlapping static routes, then this option could be correct.

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 /24 route, because it is the longest-prefix match.Correct answer

Why this is correct

The router performs a longest-prefix-match lookup in its forwarding table, and 10.55.0.0/24 has a longer prefix (more specific) than 10.55.0.0/16. Because the static route matches more bits of the destination address, it is the best route for any traffic destined to that subnet. This rule takes precedence over administrative distance or route source, so the /24 static route is always selected over the /16 OSPF route.

The OSPF /16 route, because dynamic routes override static routes learned later.Wrong answer — click to see why

Why this is wrong here

This option is incorrect because static routes are preferred over dynamic routes in OSPF when both are present, regardless of when they were learned. The static route to 10.55.10.0/24 will be used due to its longer prefix match.

★ When this WOULD be the correct answer

In a scenario where the question states that OSPF routes are configured with a higher administrative distance than static routes, the OSPF /16 route could override the static route. For example, if the static route had an administrative distance of 200 and the OSPF route had an administrative distance of 110, the OSPF route would be used.

Why candidates choose this

Candidates may choose this option due to a misunderstanding of OSPF's behavior, believing that dynamic routes always take precedence over static routes, especially if they are not familiar with the concept of administrative distance.

Both routes equally, because they point to the same major network.Wrong answer — click to see why

Why this is wrong here

This option is incorrect because OSPF routes do not share equal preference with static routes; the static /24 route will be preferred due to its longer prefix length, making it the best match for the specific destination IP.

★ When this WOULD be the correct answer

In a different scenario where both routes are configured with equal administrative distances and no specific prefix matching rules apply, a question might ask which route would be used if both were equally preferred. In such a case, the answer could be that both routes are considered equally valid for traffic to the same major network.

Why candidates choose this

Candidates may find this option tempting because it suggests that multiple routes can be utilized simultaneously, reflecting a common networking concept where multiple paths exist for the same destination.

Neither route, because overlapping routes are invalid.Wrong answer — click to see why

Why this is wrong here

This option is incorrect because overlapping routes are valid in routing protocols like OSPF, and both routes can coexist in the routing table. The static route to 10.55.10.0/24 is valid and will be preferred due to its longer prefix length.

★ When this WOULD be the correct answer

In a different scenario, if the question stated that the routing table had a configuration that explicitly marked overlapping routes as invalid or if the router was configured to reject any overlapping static routes, then this option could be correct.

Why candidates choose this

Candidates may choose this option due to a misunderstanding of how routing protocols handle overlapping routes, mistakenly believing that any overlap renders routes invalid rather than recognizing the preference rules that apply.

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.

Go deeper

Related to this question

About these practice questions

This 200-301 question is part of Courseiva's 1,389-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.