Skip to main content
OpenpassAI

Free tool · No sign-up needed

Subnetting Practice

Endless questions on network and broadcast addresses, host ranges, masks and prefixes. Answer, then see the method worked out step by step, until subnetting takes you seconds.

Last updated

Subnet mask

What is the dotted-decimal subnet mask for /30?

Score
–
Streak
0
Best streak
0

Take it further in OpenpassAI

Practice every Network+ and CCNA objective

Precision Practice finds the networking topics you miss most and drills them, alongside full timed exams, performance-based questions and live labs.

Guide

The magic-number method

1. Find the interesting octet

Write the prefix as a mask. The interesting octet is the one that’s neither 255 nor 0: for a /20 (255.255.240.0) it’s the third.

If the prefix is a multiple of 8 (/8, /16, /24), there’s no interesting octet: keep the network octets and zero the rest.

2. Work out the block size

Subtract the mask’s value in that octet from 256. For 240 that’s 16, so networks start at 0, 16, 32, 48 and so on in that octet.

3. Find the network and broadcast

The network starts at the multiple of the block size at or below the address’s value in that octet; every octet after it is 0.

The broadcast is the address just before the next network. Usable hosts are everything in between.

4. Count hosts and subnets

Usable hosts = 2^(32 − prefix) − 2. Subnets made by borrowing bits = 2^(bits borrowed).

Practice until each question takes under 30 seconds; that’s the pace exams like Network+ and CCNA reward.

FAQs

Got Questions? We’ve Got Answers.

Find quick answers or contact our support team.

How fast should I be at subnetting for the exam?

Aim for under 30 seconds per question. Network+ and CCNA questions often hide a subnetting step inside a bigger scenario, so speed leaves you time for the rest.

What do Easy, Medium and Hard change?

Easy keeps to /24–/30 in 192.168.x.x, so only the last octet changes. Medium uses /16–/30 across private ranges. Hard uses any prefix from /8 to /30 on any unicast address.

Do I need to write the mask or the prefix?

For prefix questions either works: /26 or 255.255.255.192. Address questions need a dotted-decimal address.

Is subnetting on CompTIA A+?

A+ covers IP addressing basics such as private ranges, APIPA and default gateways. Network+ and CCNA test full subnetting.

Ready to Get Certified Faster?

Start free today or see it in action first.

OpenpassAI

Hi 👋 I’m OpenpassAI. Ready to prepare for your exam the smarter way?

Ready to explore OpenpassAI? I can show you how the platform helps you prepare, practice, and pass.