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

An access list must match the network 172.16.0.0/22. Access lists use a wildcard mask, the inverse of the subnet mask. What is the third octet x of the wildcard mask?

/22
x =
2.Easy
255.255.255.24011111111111111111111111111110000network bitshost bits

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

255.255.255.240
p =
3.Medium
/?11111111111111111111110000000000network bitshost bits

A department needs 810 host addresses in a single subnet. What is the longest prefix length p (smallest subnet) that is big enough?

810 hosts
p =
4.Medium
/24 → /2711111111111111111111111111100000network bitshost bits

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

10.201.10.0/24/27
N =
5.Hard
third octet 20 … 27012806403211608140201commonvaries

A router has routes to these networks: 10.47.20.0/24, 10.47.21.0/24, 10.47.22.0/24, 10.47.23.0/24, 10.47.24.0/24, 10.47.25.0/24, 10.47.26.0/24, 10.47.27.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.47.20.0/24 … 10.47.27.0/24
p =
6.Hard
last octet = 163112806413201608041211networkhost

A host has the address 10.20.147.163/27. What is the last number (fourth octet) x of its subnet's broadcast address?

10.20.147.163/27
x =

Answer key

  1. 1. x = 3
  2. 2. p = 28
  3. 3. p = 22
  4. 4. N = 8
  5. 5. p = 20
  6. 6. x = 191

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