Question 480
An east-wing VLAN is divided into two /26s; an upstream default and an aggregate remain in the same routing table. Installed IPv4 routes: S 192.168.90.0/24 via 192.0.2.30; C 192.168.90.128/26 via Gi0/1; S 192.168.90.192/26 via 192.0.2.32; S 0.0.0.0/0 via 192.0.2.33. A packet targets 192.168.90.129. Which next hop is selected by longest-prefix matching?
Explanation
Correct Answer
The target 192.168.90.129 falls in 192.168.90.128/26, the most-specific installed matching prefix (/26); it is forwarded through Gi0/1.
Incorrect Answers
Although 192.168.90.129 falls inside 192.168.90.0/24, its /24 match is less-specific than the installed /26 route; AD cannot make a shorter match win.
192.168.90.129 is outside 192.168.90.192/26; a route that does not contain the destination cannot be used for this lookup.
Although 192.168.90.129 falls inside 0.0.0.0/0, its /0 match is less-specific than the installed /26 route; AD cannot make a shorter match win.