A router has a directly connected route to 10.1.1.0/24 and a static default route. Which route is used for traffic to 10.1.1.200?
The directly connected 10.1.1.0/24 route is selected because routers perform a longest prefix match when forwarding packets. The destination 10.1.1.1 falls within the 10.1.1.0/24 subnet, which has a 24-bit prefix, making it more specific than any default route. Since the connected route is present in the routing table, it takes precedence over less specific routes.
Why this answer
The directly connected route is used because it is the most specific and most immediate match. In practical terms, the router already knows that 10.1.1.200 belongs to a network on one of its own interfaces, so there is no reason to use the default route. The default route exists only for destinations that do not match anything more specific.
This is one of the most fundamental route-selection behaviors in IP routing.
Exam trap
A frequent exam trap is selecting the static default route for traffic destined to an IP address within a directly connected subnet. Candidates might incorrectly believe the default route overrides connected routes due to its static configuration or because it is manually set. However, the router always prefers the most specific route, which is the directly connected subnet in this case.
Misunderstanding the longest prefix match and administrative distance hierarchy leads to this error. Remember, the default route is only a fallback when no other route matches the destination IP address.
Why the other options are wrong
This option is incorrect because the static default route is less specific (0.0.0.0/0) and only used when no other route matches the destination. Since a connected route exists, the default route is ignored.
This option is wrong because routing does not load balance between a directly connected route and a static default route. The router selects the single best route based on prefix length and administrative distance.
This option is incorrect because the router clearly has a matching directly connected route for 10.1.1.200. Therefore, it will use that route rather than discarding both or failing to forward.
When would these options actually be correct?
If the question stated that the router had no directly connected routes and only a static default route configured to route all traffic, then the static default route would be the correct answer for traffic to 10.1.1.200.
In a different scenario where both routes have the same administrative distance and the router is configured to load balance traffic, a question might ask which routes are used for traffic to a specific destination. In that case, both routes could be considered equally valid for routing decisions.
In a different scenario where the router has no directly connected routes and only a static default route configured, a question asking about traffic to an unreachable IP address (e.g., 10.2.2.200) would make this option correct, as the default route would be the only available path.
Why candidates pick the wrong answer
Candidates may mistakenly believe that the default route is a catch-all for all traffic, leading them to choose it without considering the specificity of the directly connected route that applies in this scenario.
Candidates may choose this option due to a misunderstanding of routing priorities, thinking that multiple routes can be used simultaneously without recognizing that directly connected routes take precedence.
Candidates may choose this option if they mistakenly believe that a default route is always used when a specific route is not explicitly defined, overlooking the presence of a directly connected route.