hardmultiple choiceObjective-mapped

Exhibit

R1# show run | include ^ip route
ip route 198.51.100.0 255.255.255.0 192.0.2.2

R1# show ip route
O    198.51.100.64/26 [110/20] via 192.0.2.6, GigabitEthernet0/1
S    198.51.100.0/24 [1/0] via 192.0.2.2

Destination being tested: 198.51.100.70

Based on the exhibit, why is traffic to 198.51.100.64/26 using the OSPF route instead of the static route?

Question 1hardmultiple choice
Full question →

Based on the exhibit, why is traffic to 198.51.100.64/26 using the OSPF route instead of the static route?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

Because the OSPF /26 route is more specific than the static /24 route.

This is correct because longest-prefix match causes the /26 route to be chosen for 198.51.100.70.

B

Distractor review

Because OSPF always overrides static routing, regardless of prefix length.

This is wrong because static routes do not automatically lose to OSPF; prefix specificity is the key issue here.

C

Distractor review

Because the static route must have an administrative distance of 255 to be considered.

This is wrong because the static route is already valid in the table; the problem is that it is less specific.

D

Distractor review

Because the destination 198.51.100.70 is outside both listed routes.

This is wrong because the destination clearly falls within both the /24 and the /26 prefixes shown.

Common exam trap

Common exam trap: answer the scenario, not the keyword

A frequent exam trap is believing that static routes always take precedence over OSPF routes because static routes have a lower administrative distance. This misconception ignores the fundamental routing principle of longest-prefix match, which prioritizes the most specific subnet mask regardless of route source. Candidates may incorrectly select the static route simply because it is static, missing that the OSPF route’s /26 mask is more specific than the static /24. This leads to incorrect answers and confusion about route selection behavior in Cisco routers.

Technical deep dive

How to think about this question

Routing decisions in Cisco routers rely heavily on the principle of longest-prefix match, which means the router selects the route with the most specific subnet mask that matches the destination IP address. For example, a /26 subnet mask is more specific than a /24 because it covers fewer IP addresses, allowing more precise routing. This specificity ensures traffic is forwarded along the most exact path available, improving routing efficiency and accuracy. When multiple routes to the same destination exist, the router first compares the prefix lengths to determine which route is more specific. Only if two routes have the same prefix length does the router then compare administrative distance values to select the preferred route. Static routes have an administrative distance of 1, while OSPF routes have a default administrative distance of 110. However, this preference is overridden if the prefix lengths differ, as the router always chooses the longest prefix match first. A common exam trap is assuming static routes always override dynamic routes due to their lower administrative distance. In reality, if a dynamic route has a more specific prefix, it will be preferred regardless of administrative distance. This behavior reflects practical network design, where more specific routes provide better path granularity. Understanding this helps network engineers design routing tables that avoid unexpected traffic flows and ensures accurate troubleshooting of routing issues involving overlapping static and OSPF routes.

KKey Concepts to Remember

  • A router uses longest-prefix match to select the most specific route for a given destination IP address, preferring routes with longer subnet masks.
  • Static routes have a default administrative distance of 1, which is lower than OSPF's default of 110, but prefix specificity takes precedence over administrative distance.
  • OSPF advertises routes with specific subnet masks learned dynamically, which can override broader static routes when the destination matches the more specific prefix.
  • When multiple routes exist to the same destination, the router first compares prefix length before considering administrative distance or metric.
  • A static route with a broader subnet mask (e.g., /24) will be ignored in favor of a dynamic route with a narrower subnet mask (e.g., /26) if the destination IP falls within the narrower range.
  • Administrative distance is only used to break ties when two routes have the same prefix length and destination network.
  • Routers do not automatically prefer static routes over dynamic routes; route selection depends on prefix specificity and administrative distance in that order.
  • Understanding longest-prefix match is critical for troubleshooting routing decisions involving overlapping static and dynamic routes.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Related practice questions

Related 200-301 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this 200-301 question test?

A router uses longest-prefix match to select the most specific route for a given destination IP address, preferring routes with longer subnet masks.

What is the correct answer to this question?

The correct answer is: Because the OSPF /26 route is more specific than the static /24 route. — The traffic uses the OSPF route because it is the more specific match. In practical terms, the router evaluates destination-prefix specificity before comparing route source preference. The static route points to a broader /24, while the OSPF entry points to a narrower /26 that still contains the destination. Because longest-prefix match comes first, the /26 route wins. This is a good reminder that static routes do not automatically beat dynamic routes when the prefixes are different. Specificity matters first, then source preference only when the prefix length is the same.

What should I do if I get this 200-301 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.