Question 460
A junior networking engineer reports: A router has a static 10.0.0.0/8 and a dynamic route to 10.10.20.0/24, and a trainee expects the static /8 always to win because it has lower preference. Which technical principle most directly explains these observations?
Explanation
Correct Answer
The underlying technical condition is: Longest-prefix matching selects the more-specific destination prefix before comparing preference among routes for the same prefix. A suitable corrective step is: Verify installation of the /24 and look up 10.10.20.5 using the forwarding table. The expected proof is: Traffic to 10.10.20.5 uses /24 while unrelated 10/8 hosts may use the aggregate static route.
Incorrect Answers
For otherwise eligible routes to the same prefix, lower Junos route preference wins; ordinary static routes have lower preference than BGP. “Inspect show route for the identical prefix and adjust authorized route preference or remove an unintended static route” would address that alternative cause, not the condition in this question: longest-prefix matching selects the more-specific destination prefix before comparing preference among routes for the same prefix.
“Configure primary and backup qualified next hops with approved relative preference values and monitor failure behavior” responds to this separate finding: qualified-next-hop can express different route preference for alternative static gateways rather than treating all as equivalent paths. This question instead needs “Verify installation of the /24 and look up 10.10.20.5 using the forwarding table”, so the alternative does not meet the stated condition.
A next hop needs successful route resolution and appropriate interface adjacency before it can support forwarding. “Correct the next-hop address or its reachable connected path and check the resulting active route” applies to that separate problem. The observed case is a router has a static 10.0.0.0/8 and a dynamic route to 10.10.20.0/24, and a trainee expects the static /8 always to win because it has lower preference; choosing this alternative would address the wrong failure mode.