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

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

/28
H =
2.Easy
/2011111111111111111111000000000000network bitshost bits

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

/20
x =
3.Medium
/?11111111111111111111100000000000network bitshost bits

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

1784 hosts
p =
4.Medium
/?11111111111111111111110000000000network bitshost bits

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

829 hosts
p =
5.Hard
third octet 126 … 132012816413211618141201commonvaries

A router has routes to these networks: 10.96.126.0/24, 10.96.127.0/24, 10.96.128.0/24, 10.96.129.0/24, 10.96.130.0/24, 10.96.131.0/24, 10.96.132.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.96.126.0/24 … 10.96.132.0/24
p =
6.Hard

The network 192.168.254.0/24 is split with VLSM for these LANs: A: 14 hosts, B: 29 hosts, C: 5 hosts, D: 47 hosts, E: 28 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: 14B: 29C: 5D: 47E: 28
x =

Answer key

  1. 1. H = 14
  2. 2. x = 15
  3. 3. p = 21
  4. 4. p = 22
  5. 5. p = 16
  6. 6. x = 64

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