Question 280
An operator configures two entries for 172.16.40.0/24, one learned from OSPF with administrative distance 110 and one static route with the default static distance 1. Both next hops are valid. What controls which entry is installed?
Explanation
Correct Answer
For identical destination prefix lengths and addresses, IOS compares administrative distance between competing sources before installing the selected route. A normal static route at distance 1 outranks OSPF at 110 when both are valid. Packet forwarding later uses the installed route and longest-prefix match, which is a different comparison from selecting between sources for one prefix.
Incorrect Answers
Route sources do not have a universal dynamic-over-static rule. The defaults in the scenario make the static source more trusted for this identical destination prefix.
Both entries describe exactly the same /24 network and address space. Host capacity does not distinguish these competing routes or change their default preference.
Interface description strings are operator annotations and not a routing-protocol tie-breaker. The actual administrative distance determines which source is preferred.