Practice mode Computer Networks

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.