hardmultiple choiceObjective-mapped

R1 has the following routes installed:

O    10.10.10.0/24 via 192.0.2.2
S    10.10.10.128/25 via 198.51.100.2

S* 0.0.0.0/0 via 203.0.113.1

A packet destined for 10.10.10.200 arrives at R1. Which route is used?

Question 1hardmultiple choice
Full question →

R1 has the following routes installed:

O    10.10.10.0/24 via 192.0.2.2
S    10.10.10.128/25 via 198.51.100.2

S* 0.0.0.0/0 via 203.0.113.1

A packet destined for 10.10.10.200 arrives at R1. Which route is used?

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

Distractor review

The OSPF route to 10.10.10.0/24 via 192.0.2.2

The /24 matches, but the /25 is more specific.

B

Best answer

The static route to 10.10.10.128/25 via 198.51.100.2

Longest prefix match makes the /25 win.

C

Distractor review

The default route via 203.0.113.1

A more specific route exists.

D

Distractor review

The packet is dropped because OSPF routes cannot overlap with static routes.

Overlapping routes are allowed; the most specific one is chosen.

Common exam trap

Common exam trap: answer the scenario, not the keyword

A common exam trap is assuming that the router will always prefer OSPF routes over static routes because OSPF is a dynamic routing protocol. Candidates may also mistakenly believe that overlapping routes are invalid or cause routing conflicts. In reality, Cisco routers allow overlapping routes and use the longest prefix match rule first, regardless of the routing protocol or administrative distance. This leads to confusion when a static route with a longer prefix exists alongside an OSPF route with a shorter prefix. Misunderstanding this can cause incorrect answers about which route will be used for forwarding packets.

Technical deep dive

How to think about this question

Routing decisions in Cisco routers rely on the longest prefix match rule, which means the router selects the route with the most specific subnet mask that matches the destination IP address. In this scenario, R1 has three routes: an OSPF-learned route for 10.10.10.0/24, a static route for 10.10.10.128/25, and a default static route 0.0.0.0/0. The destination IP 10.10.10.200 falls within the 10.10.10.128/25 subnet, making the static route the most specific match. This specificity ensures the packet is forwarded via the static route's next-hop address 198.51.100.2. The router uses administrative distance and prefix length to select the best route. Although OSPF routes have a default administrative distance of 110 and static routes have 1, the longest prefix match takes precedence in forwarding decisions. The static route with a /25 mask is more specific than the OSPF /24 route, so it is preferred regardless of the routing protocol. The default route is only used if no other more specific routes match the destination IP. A common exam trap is misunderstanding overlapping routes and assuming that routing protocols cannot coexist with static routes for overlapping subnets. Cisco routers allow overlapping routes and always choose the most specific prefix. Practically, this behavior enables network engineers to override dynamic routes with static routes for certain subnets, providing granular control over traffic paths and redundancy strategies.

KKey Concepts to Remember

  • Cisco routers forward packets based on the longest prefix match, selecting the route with the most specific subnet mask that matches the destination IP address.
  • Static routes have an administrative distance of 1, which is preferred over OSPF's default administrative distance of 110 when prefix lengths are equal.
  • When multiple routes match a destination, the router chooses the route with the longest subnet mask regardless of routing protocol.
  • Default routes (0.0.0.0/0) are used only when no more specific route exists in the routing table for the destination IP address.
  • Overlapping routes from different sources, such as static and OSPF, are allowed and the router forwards packets using the most specific matching route.
  • The subnet 10.10.10.128/25 covers IP addresses from 10.10.10.128 to 10.10.10.255, which includes the destination 10.10.10.200.
  • OSPF routes are learned dynamically and installed with a higher administrative distance than static routes, but prefix length takes precedence in forwarding decisions.
  • Static routes can be used to override dynamic routing protocol routes for specific subnets by providing more specific prefixes.

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?

Cisco routers forward packets based on the longest prefix match, selecting the route with the most specific subnet mask that matches the destination IP address.

What is the correct answer to this question?

The correct answer is: The static route to 10.10.10.128/25 via 198.51.100.2 — Routers forward using longest prefix match first. Even though the OSPF /24 exists, the static /25 is more specific and covers 10.10.10.200, so the packet is sent via 198.51.100.2. The default route is used only when nothing more specific matches.

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.