StudyG Logo
Study G
Concept Breakdowns

Subnet Mask CIDR Notation and Host Calculation

These flashcards cover subnet masks and CIDR notation — essential skills for CompTIA Network+, CCNA, and any networking course covering IP address planning. Students routinely lose marks by confusing prefix length with usable host counts or misreading broadcast addresses. These cards sharpen your ability to convert between dotted-decimal and slash notation, calculate how many hosts a subnet supports, and identify network and broadcast addresses quickly — exactly the calculations that appear on certification exams.

Interactive Deck

5 Cards
1
Front

How many usable hosts does a /24 subnet support?

Click to reveal
1
Back

A /24 subnet has 2^(32-24) = 2^8 = 256 total addresses.

  • Subtract 2 (network address + broadcast) = 254 usable hosts
  • Formula: 2^(32-prefix) − 2
2
Front

Convert 255.255.255.0 to CIDR prefix notation.

Click to reveal
2
Back

255.255.255.0 = /24

Count the consecutive 1-bits in the mask: 8+8+8+0 = 24.

Common mappings:

  • 255.0.0.0 = /8
  • 255.255.0.0 = /16
  • 255.255.255.0 = /24
  • 255.255.255.128 = /25
3
Front

What is the broadcast address for 192.168.1.0/24?

Click to reveal
3
Back

The broadcast address is the last address in the subnet — all host bits set to 1.

For 192.168.1.0/24: host portion is the last octet → 192.168.1.255

No host is assigned the broadcast address; it delivers packets to all hosts in the subnet.

4
Locked

What is the network address of 10.0.5.37/27?

5
Locked

What does CIDR stand for and why was it introduced?

Master this topic effortlessly.

Study G helps you master any topic effortlessly using proven learning algorithms and smart review timing

Download Study G

Frequently Asked Questions

How do I calculate the number of hosts in a subnet?

Use the formula 2^(32 − prefix) − 2. The 32 − prefix gives you the number of host bits. Subtract 2 to remove the network and broadcast addresses. For example, /26 = 2^6 − 2 = 62 usable hosts.

What is the difference between a subnet mask and a CIDR prefix?

Both describe the same boundary but in different formats. A subnet mask is written in dotted-decimal (e.g., 255.255.255.0), while a CIDR prefix is the count of network bits preceded by a slash (e.g., /24). They are interchangeable — 255.255.255.0 always equals /24.

Why do subnets lose 2 addresses?

Every subnet reserves its first address as the network identifier (all host bits = 0) and its last address as the broadcast (all host bits = 1). Neither can be assigned to a host. A /30 subnet, for example, has 4 total addresses but only 2 usable hosts.