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.19211111111111111111111111111000000network bitshost bits

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

255.255.255.192
p =
2.Easy
fourth octet of /29112816413211618040201oneszeros

Write the subnet mask of a /29 network in dotted-decimal notation. What is the value x of its fourth octet?

/29
x =
3.Medium
/24 → /2911111111111111111111111111111000network bitshost bits

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

192.168.10.0/2430 subnets
H =
4.Medium
/16 → /2211111111111111111111110000000000network bitshost bits

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

172.29.0.0/16/22
N =
5.Hard
last octet = 198112816403201608141201networkhost

A host has the address 10.20.105.198/25. What is the fourth octet x of its network address?

10.20.105.198/25
x =
6.Hard
third octet 17 … 23012806403211608040211commonvaries

A router has routes to these networks: 10.152.17.0/24, 10.152.18.0/24, 10.152.19.0/24, 10.152.20.0/24, 10.152.21.0/24, 10.152.22.0/24, 10.152.23.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.152.17.0/24 … 10.152.23.0/24
p =

Answer key

  1. 1. p = 26
  2. 2. x = 248
  3. 3. H = 6
  4. 4. N = 64
  5. 5. x = 128
  6. 6. p = 21

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