CS FundamentalsVery hardGATE CS · Cisco/networking placement

A firewall rule must match exactly the addresses 192.168.1.20 to 192.168.1.75 (inclusive) and nothing else, using CIDR blocks. What is the fewest number of blocks needed?

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

Correct answer: D. 5

Each block must be aligned to its own size: 20/30 (20–23), 24/29 (24–31), 32/27 (32–63), 64/29 (64–71) and 72/30 (72–75), so 5 blocks. Fewer blocks always overshoot, e.g. a single /25 or a /28 starting at 16.

More Computer Networks questions

Exams that ask this topic