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?
O 10.10.10.0/24 via 192.0.2.2 S 10.10.10.128/25 via 198.51.100.2
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
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
The OSPF route to 10.10.10.0/24 via 192.0.2.2
The /24 matches, but the /25 is more specific.
The static route to 10.10.10.128/25 via 198.51.100.2
Longest prefix match makes the /25 win.
The default route via 203.0.113.1
A more specific route exists.
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
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
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.
Related practice questions
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Practise IPv4 subnetting, CIDR, masks, host ranges and subnet selection.
Practise OSPF neighbours, router IDs, metrics, areas and routing-table interpretation.
Practise VLANs, access ports, trunks, allowed VLANs and switching scenarios.
Practise spanning tree, root bridge election, port roles and STP troubleshooting.
Practise LACP, PAgP, port-channel behaviour and bundle requirements.
Practise standard and extended ACLs, permit/deny logic and traffic filtering.
Practise static NAT, dynamic NAT, PAT and inside/outside address translation.
Practise DHCP scopes, relay, leases and troubleshooting.
Practise routing-table output, longest-prefix match, AD and route selection.
Practise trunk verification and VLAN forwarding across switches.
Practise WLAN security, authentication and wireless architecture concepts.
Practise IPv6 addressing, routes, neighbour discovery and common IPv6 exam traps.
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
FAQ
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.
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.
Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.
Sign in to join the discussion.