A router has routes for 10.0.0.0/8, 10.1.0.0/16, 10.1.2.0/24 and 0.0.0.0/0. Which route is used for destination 10.1.3.9?
Correct answer A. 10.1.0.0/16
Explanation
Routers choose the longest prefix that matches the destination. The address 10.1.3.9 matches /8, /16 and the default route, but it is not within 10.1.2.0/24, whose range ends at 10.1.2.255. Of the true matches, /16 is the longest and so is selected. The default route applies only when nothing more specific matches.
Answer checked How we write and check questions
Discussion