CS FundamentalsHardGATE CS · Cisco/networking placement

A router's table has 131.23.0.0/16 → A, 131.23.128.0/17 → B, 131.23.144.0/20 → C, 131.23.148.0/22 → D and a default route → E. Where does it forward packets to 131.23.150.9, 131.23.160.1, 131.23.127.5 and 131.23.152.1, in that order?

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

Correct answer: A. D, B, A, C

The /22 covers third octet 148–151 (so .150 → D), the /20 covers 144–159 (.152 → C, but .160 is outside → B via the /17 that covers 128–255) and .127 matches only the /16 → A. Longest prefix wins in every case.

More Computer Networks questions

Exams that ask this topic