IP Connectivity

A router holds these routes: S 10.1.0.0/16 [1/0] via 192.0.2.1; D 10.1.1.0/24 [90/3072] via 192.0.2.2; O 10.1.1.128/25 [110/20] via 192.0.2.3; S* 0.0.0.0/0 [1/0] via 192.0.2.4. Which entry forwards a packet destined to 10.1.1.200?

Show the answer

Correct answerB. 10.1.1.128/25 via 192.0.2.3

AWhy not this: The default route is used only when no more specific prefix matches.

BWhy this is right: The /25 covers 10.1.1.128-255 and is the longest matching prefix, so it wins despite the higher AD.

CWhy not this: The /24 matches but is shorter than the /25, so it loses; its lower AD is irrelevant.

DWhy not this: The /16 matches, but its AD of 1 does not override a longer prefix.

10.1.1.200 matches the /16, /24, /25 and default prefixes, and the router picks the longest matching prefix, the /25. AD only chooses between routes with the same prefix, so the static /16 with AD 1 does not win.