bgunderlay bgunderlay bgunderlay

IPv4 Subnet and CIDR Cheat Sheet

A subnet reference helps engineers compare CIDR prefixes, address capacity, and network boundaries. Total addresses and usable hosts are not always the same.

An IPv4 subnet cheat sheet is a quick reference that matches CIDR prefix lengths to subnet masks, address counts, and host capacity. A CIDR cheat sheet also helps identify network and broadcast boundaries, calculate wildcard masks, and avoid overlapping ranges. It supports network configuration, troubleshooting, and planning for hosting, ISP, and enterprise environments.

What Do CIDR Prefixes and Subnet Masks Mean?

IPv4 addresses have 32 bits. In CIDR notation, /24 means 24 network bits and eight host bits; its mask is 255.255.255.0.

To read a subnet mask reference, remember three relationships:

  • Host bits = 32 minus the CIDR prefix length.
  • Total addresses = 2 raised to the number of host bits.
  • Conventional usable hosts = total addresses minus two.

The subtraction reserves network and broadcast addresses. On supported /31 point-to-point links, both addresses are usable; /32 identifies one address. Cloud reservations can further reduce capacity.

Which Prefixes Belong in an IPv4 Subnet Table?

This IPv4 subnet table lists masks, total addresses, and conventional usable hosts:

  • /16 — 255.255.0.0: 65,536 total addresses; 65,534 usable.
  • /20 — 255.255.240.0: 4,096 total; 4,094 usable.
  • /22 — 255.255.252.0: 1,024 total; 1,022 usable.
  • /23 — 255.255.254.0: 512 total; 510 usable.
  • /24 — 255.255.255.0: 256 total; 254 usable.
  • /25 — 255.255.255.128: 128 total; 126 usable.
  • /26 — 255.255.255.192: 64 total; 62 usable.
  • /27 — 255.255.255.224: 32 total; 30 usable.
  • /28 — 255.255.255.240: 16 total; 14 usable.
  • /29 — 255.255.255.248: 8 total; 6 usable.
  • /30 — 255.255.255.252: 4 total; 2 usable.

A comprehensive CIDR prefix table also includes /8 with 16,777,216 addresses, /31 with two addresses for supported point-to-point links, and /32 with one. Actual assignable capacity depends on the network.

How Can You Calculate Network and Broadcast Ranges?

Consider 192.168.10.70/26. The mask is 255.255.255.192, with 64 addresses per subnet. Valid final-octet boundaries are 0, 64, 128, and 192; therefore, .70 belongs to 192.168.10.64/26.

Use the following steps to check the range:

  • Identify the network boundary: 192.168.10.64.
  • Add the block size minus one for the broadcast: 192.168.10.127.
  • Exclude both endpoints for ordinary host assignments: 192.168.10.65–192.168.10.126.

For /29, 192.168.10.16/29 covers .16–.23, with usable hosts .17–.22. Subnets cannot start at arbitrary boundaries.

How Are Wildcard Masks Different from Subnet Masks?

A wildcard mask reverses a subnet mask: subtract every octet from 255. For /24 (255.255.255.0), the wildcard is 0.0.0.255; for /26 (255.255.255.192), it is 0.0.0.63.

Wildcard masks appear in router access lists and some routing settings. In access-list matching, a zero bit requires a match and a one bit allows variation. They are not interchangeable with subnet masks; confusing them can match the wrong range.

Which Subnet Sizes Fit Common Network Tasks?

A subnet prefix cheat sheet helps match capacity to use: /24 for a moderately sized segment, /26 for smaller groups, /28 for limited infrastructure, and /30 for a two-host connection. Supported /31 links use fewer addresses.

For variable-length subnet masking, allocate larger blocks first and respect CIDR boundaries. Document gateways and planned growth; an IPv4 CIDR chart cannot replace allocation records.

Does the Same Cheat Sheet Apply to IPv6?

IPv6 uses 128-bit addresses and CIDR prefixes, but its subnet sizing conventions differ. A /64 is typical for an IPv6 LAN, a /48 contains 65,536 separate /64 networks, and a /128 identifies one address. IPv6 does not use IPv4-style broadcast addresses, so subtracting two to estimate usable hosts is inappropriate. Keep IPv4 and IPv6 references separate when planning dual-stack networks.

What Errors Should a Subnet Reference Help Prevent?

Check for these errors:

  • Counting network and broadcast addresses as usable hosts.
  • Starting a /26 subnet at .50 instead of .0, .64, .128, or .192.
  • Confusing wildcard and subnet masks.
  • Overlapping two allocations from the same parent block.
  • Assuming private subnet sizes will be accepted as public BGP announcements.

Public routing also requires registry records, authorization, and upstream prefix checks. Clouds have their own address reservations and BYOIP minimum sizes.

How Does a CIDR Cheat Sheet Help with Public IPv4 Planning?

Hosting, ISP, and cloud teams must size blocks for workloads and growth. A /24 holds 256 total addresses, but normally only 254 usable hosts before provider reservations.

Organizations can lease IPv4 ranges, purchase IPv4 blocks, or explore BYOIP in supported clouds. Check prefix size, geolocation, reputation, and routing.

What Are the Most Common Questions About Subnet Masks?

What is the subnet mask for /27?

A /27 corresponds to 255.255.255.224, providing 32 total addresses and normally 30 usable hosts.

Why does a /24 contain 256 addresses but only 254 usable hosts?

The first address identifies the network and the last is its broadcast address under conventional IPv4 subnetting.

Does a /31 subnet have zero usable addresses?

No. RFC 3021 allows both addresses to be used on supported point-to-point links. It should not be treated like a conventional LAN subnet.

Can a /28 be announced separately on the public Internet?

A /28 is valid mathematically, but independent global BGP propagation is generally restricted by upstream prefix filters. Check the provider’s routing policy.

 

How Can You Choose IPv4 Space with Confidence?

Use the IPv4 subnet mask table to check address capacity and network boundaries before acquiring public IPv4 space. Contact InterLIR to discuss leasing, purchasing, or BYOIP options. Specialists can help assess suitable prefix sizes, availability, address history, registry requirements, and routing considerations so that the chosen block fits your infrastructure plan.

G. Masterov

    Articles
    Аренда/лизинг/покупка
    Аренда/лизинг/покупка

    Понимание различных типов и назначения IP-адресов

    More
    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)
    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)

    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses Subnetting is a critical

    More
    IPv4 Leasing Revolution: Why Smart Businesses Are Ditching Ownership in 2025
    IPv4 Leasing Revolution: Why Smart Businesses Are Ditching Ownership in 2025

    Why IPv4 Leasing Is Becoming the Smart Choice for Businesses in 2025 1. Introduction

    More
    Network Isolation Revolution: IPv4 Marketplace Insights for Enterprise Security
    Network Isolation Revolution: IPv4 Marketplace Insights for Enterprise Security

      As CEO of InterLIR, I’ve witnessed firsthand how network isolation strategies

    More
    What is ASN?
    What is ASN?

    What is an ASN? ASN stands for Autonomous System Number. It is a unique identifier

    More
    How Anycast DNS Actually Works (And Why Your Network Needs It)
    How Anycast DNS Actually Works (And Why Your Network Needs It)

    Anycast DNS: A Leader’s Guide to Protecting Your Digital Infrastructure Executive

    More
    Why RPKI Matters: Securing Your Company’s Internet Traffic
    Why RPKI Matters: Securing Your Company’s Internet Traffic

    RPKI Certification: A Leader’s Guide to Internet Routing Security Executive

    More
    Why RIPE Address Policy Matters for Your Company’s Digital Future
    Why RIPE Address Policy Matters for Your Company’s Digital Future

    Executive Summary: What You Need to Know 🎯 Strategic Importance – Internet

    More
    AWS Outages: The CEO’s Guide to Preventing Downtime & Protecting Revenue
    AWS Outages: The CEO’s Guide to Preventing Downtime & Protecting Revenue

      When AWS DynamoDB failed in October 2025, thousands of businesses discovered that

    More
    What I Wish CEOs Knew About Managing IP Reputation Risk
    What I Wish CEOs Knew About Managing IP Reputation Risk

    Executive Summary: What You Need to Know 🎯 IP reputation directly impacts your

    More
    Cookie Consent with Real Cookie Banner Privacy settings