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
third octet of /18112816403201608040201oneszeros

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

/18
x =
2.Easy
255.255.255.25211111111111111111111111111111100network bitshost bits

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

255.255.255.252
p =
3.Medium
255.255.255.24011111111111111111111111111110000network bitshost bits

A subnet uses the mask 255.255.255.240. How many usable host addresses H does it have?

255.255.255.240
H =
4.Medium
/24 → /2911111111111111111111111111111000network bitshost bits

The network 192.168.105.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.105.0/24/29subnet 12 (subnet 1 starts at .0)
x =
5.Hard

The network 192.168.16.0/24 is split with VLSM for these LANs: A: 42 hosts, B: 10 hosts, C: 4 hosts, D: 96 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: 42B: 10C: 4D: 96
x =
6.Hard

The network 192.168.76.0/24 is split with VLSM for these LANs: A: 71 hosts, B: 3 hosts, C: 24 hosts, D: 20 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: 71B: 3C: 24D: 20
x =

Answer key

  1. 1. x = 192
  2. 2. p = 30
  3. 3. H = 14
  4. 4. x = 88
  5. 5. x = 192
  6. 6. x = 192

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