CS FundamentalsHardProduct-company MCQ pattern

A router's table holds 10.0.0.0/8 → interface A, 10.1.0.0/16 → interface B, 10.1.128.0/17 → interface C and a default route → interface D. On which interface is a packet for 10.1.130.5 sent?

  1. A. B
  2. B. A
  3. C. C
  4. D. D

Correct answer: C. C

All three prefixes match 10.1.130.5 (130 ≥ 128 falls in 10.1.128.0/17), and the router uses longest-prefix match, so the /17 entry wins. A packet for 10.1.100.5 would have gone to B.

More Computer Networks questions

Exams that ask this topic