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
255.255.255.22411111111111111111111111111100000network bitshost bits

A subnet has the mask 255.255.255.224. What is its prefix length p?

255.255.255.224
p =
2.Easy
/2111111111111111111111100000000000network bitshost bits

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

/21
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 → /2911111111111111111111111111111000network bitshost bits

The network 192.168.35.0/24 is divided into /29 subnets, numbered 1, 2, 3, … from the lowest address (subnet 1 starts at .0). What is the fourth octet x of the network address of subnet 6?

192.168.35.0/24/29subnet 6 (subnet 1 starts at .0)
x =
5.Hard
third octet 163 … 168112806413201608041211commonvaries

A router has routes to these networks: 10.86.163.0/24, 10.86.164.0/24, 10.86.165.0/24, 10.86.166.0/24, 10.86.167.0/24, 10.86.168.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.86.163.0/24 … 10.86.168.0/24
p =
6.Hard

The network 192.168.0.0/24 is split with VLSM for these LANs: A: 5 hosts, B: 19 hosts, C: 22 hosts, D: 121 hosts. Subnets are allocated from .0 upwards, the LAN with the most hosts first, each with the smallest subnet that fits. What is the fourth octet x of the network address of LAN B?

A: 5B: 19C: 22D: 121
x =

Answer key

  1. 1. p = 27
  2. 2. H = 2046
  3. 3. H = 6
  4. 4. x = 40
  5. 5. p = 20
  6. 6. x = 160

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