IPv4 subnetting worksheet with answers

Free printable IPv4 subnetting worksheet: 6 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy
/2711111111111111111111111111100000network bitshost bits

How many usable host addresses H are there in an IPv4 subnet with prefix /27?

/27
H =
2.Easy
/2311111111111111111111111000000000network bitshost bits

How many usable host addresses H are there in an IPv4 subnet with prefix /23?

/23
H =
3.Medium
255.255.255.24811111111111111111111111111111000network bitshost bits

A subnet uses the mask 255.255.255.248. How many usable host addresses H does it have?

255.255.255.248
H =
4.Medium
/24 → /3011111111111111111111111111111100network bitshost bits

The network 10.61.247.0/24 is divided into equal subnets with prefix /30. How many subnets N are there?

10.61.247.0/24/30
N =
5.Hard
third octet 6 … 8012806403201608141201commonvaries

A router has routes to these networks: 10.120.6.0/24, 10.120.7.0/24, 10.120.8.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.120.6.0/24 … 10.120.8.0/24
p =
6.Hard
third octet 164 … 170112806413201608140201commonvaries

A router has routes to these networks: 10.255.164.0/24, 10.255.165.0/24, 10.255.166.0/24, 10.255.167.0/24, 10.255.168.0/24, 10.255.169.0/24, 10.255.170.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.255.164.0/24 … 10.255.170.0/24
p =

Answer key

  1. 1. H = 30
  2. 2. H = 510
  3. 3. H = 6
  4. 4. N = 64
  5. 5. p = 20
  6. 6. p = 20

Full step-by-step solutions: practise this topic on examproblems.com.