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
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
/24 → /2911111111111111111111111111111000network bitshost bits

The network 192.168.148.0/24 is divided into /29 subnets, numbered 1, 2, 3, … from the lowest address (subnet 1 starts at .0). What is the fourth octet x of the network address of subnet 12?

192.168.148.0/24/29subnet 12 (subnet 1 starts at .0)
x =
4.Medium
/?11111111111111111111100000000000network bitshost bits

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

1481 hosts
p =
5.Hard

The network 192.168.81.0/24 is split with VLSM for these LANs: A: 7 hosts, B: 54 hosts, C: 17 hosts, D: 21 hosts, E: 4 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 D?

A: 7B: 54C: 17D: 21E: 4
x =
6.Hard

The network 192.168.186.0/24 is split with VLSM for these LANs: A: 111 hosts, B: 23 hosts, C: 30 hosts, D: 6 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: 111B: 23C: 30D: 6
x =

Answer key

  1. 1. H = 62
  2. 2. p = 28
  3. 3. x = 88
  4. 4. p = 21
  5. 5. x = 64
  6. 6. x = 160

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