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

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

/26
H =
2.Easy
/2611111111111111111111111111000000network bitshost bits

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

/26
x =
3.Medium
/16 → /2111111111111111111111100000000000network bitshost bits

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

172.26.0.0/16/21
N =
4.Medium
/24 → /2811111111111111111111111111110000network bitshost bits

The network 192.168.10.0/24 must be divided into at least 10 equal subnets. If you borrow as few bits as possible, how many usable hosts H does each subnet have?

192.168.10.0/2410 subnets
H =
5.Hard
third octet 60 … 67012806413211618140201commonvaries

A router has routes to these networks: 10.140.60.0/24, 10.140.61.0/24, 10.140.62.0/24, 10.140.63.0/24, 10.140.64.0/24, 10.140.65.0/24, 10.140.66.0/24, 10.140.67.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.140.60.0/24 … 10.140.67.0/24
p =
6.Hard
third octet = 172112806413201618140201networkhost

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

172.20.172.205/22
x =

Answer key

  1. 1. H = 62
  2. 2. x = 63
  3. 3. N = 32
  4. 4. H = 14
  5. 5. p = 17
  6. 6. x = 175

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