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
/2411111111111111111111111100000000network bitshost bits

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

/24
H =
2.Easy
255.255.255.19211111111111111111111111111000000network bitshost bits

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

255.255.255.192
p =
3.Medium
/16 → /2111111111111111111111100000000000network bitshost bits

The network 172.22.0.0/16 is divided into equal subnets with prefix /21. How many subnets N are there?

172.22.0.0/16/21
N =
4.Medium
255.255.255.12811111111111111111111111110000000network bitshost bits

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

255.255.255.128
H =
5.Hard
third octet = 180112806413211608140201networkhost

A host has the address 172.20.180.148/23. What is the third octet x of its subnet's broadcast address?

172.20.180.148/23
x =
6.Hard

The network 192.168.120.0/24 is split with VLSM for these LANs: A: 103 hosts, B: 18 hosts, C: 49 hosts, D: 7 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 C?

A: 103B: 18C: 49D: 7
x =

Answer key

  1. 1. H = 254
  2. 2. p = 26
  3. 3. N = 32
  4. 4. H = 126
  5. 5. x = 181
  6. 6. x = 128

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