Question 1
IP ConnectivityA router has these routes in its table: 10.0.0.0/8 via OSPF, 10.1.0.0/16 via EIGRP, and 10.1.1.0/24 via RIP. A packet arrives destined for 10.1.1.77. Which route does the router use?
Show the answer
Correct answerC. 10.1.1.0/24 via RIP
AWhy not this: The /8 matches but is the least specific route, so it loses to longer matches.
BWhy not this: The /16 matches the address but is less specific than the /24, so it is not chosen.
CWhy this is right: The /24 is the longest matching prefix, so it wins regardless of the protocol that learned it.
DWhy not this: Administrative distance is only a tiebreaker between sources of the identical prefix, not across different prefix lengths.
The router picks the matching route with the longest prefix length, and /24 is the most specific match for 10.1.1.77. Administrative distance only compares sources for the same prefix, so RIP's higher distance does not matter here.