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 /19112816413201608040201oneszeros

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

/19
x =
2.Easy
fourth octet of /26112816403201608040201oneszeros

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

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

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

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

The network 192.168.47.0/24 is divided into /28 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 8?

192.168.47.0/24/28subnet 8 (subnet 1 starts at .0)
x =
5.Hard
third octet 172 … 175112806413201618140201commonvaries

A router has routes to these networks: 10.44.172.0/24, 10.44.173.0/24, 10.44.174.0/24, 10.44.175.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.44.172.0/24 … 10.44.175.0/24
p =
6.Hard
third octet 82 … 86012816403211608041201commonvaries

A router has routes to these networks: 10.76.82.0/24, 10.76.83.0/24, 10.76.84.0/24, 10.76.85.0/24, 10.76.86.0/24. What is the longest prefix length p of a single summary route that covers all of them?

10.76.82.0/24 … 10.76.86.0/24
p =

Answer key

  1. 1. x = 224
  2. 2. x = 192
  3. 3. N = 64
  4. 4. x = 112
  5. 5. p = 22
  6. 6. p = 21

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