Skip to content
AdminKit

Subnet

What is Subnet?

A subnet is a logical subdivision of an IP network, defined by a CIDR prefix length like /24 that marks how many address bits identify the network versus the host. AdminKit's subnet calculator works out the usable range, broadcast address and host count for any prefix, and checks whether a given address falls inside it.

By AdminKit team, Netbase JSC · Updated

A subnet is a logical subdivision of an IP network, defined by a prefix length (written as a CIDR suffix like /24) that marks how many of the address’s bits identify the network versus the individual host — the same prefix-length math Cloudflare’s explainer on subnets walks through. Subnetting lets an organization split one large address block into smaller, independently routable or administrable segments — separating a guest Wi-Fi network from internal servers, for example. The same math applies to deciding whether an address falls inside a reserved range, such as checking if a router’s WAN address sits inside the 100.64.0.0/10 block ISPs use for CGNAT — listed alongside the other reserved IPv4 blocks in IANA’s IPv4 Special-Purpose Address Registry — or inside the private ranges defined by RFC 1918. RFC 4632 is the specification behind the CIDR prefix notation subnetting relies on. The subnet’s first address (all host bits zero) and last address (all host bits one, the broadcast address) are both reserved rather than assignable to a device, which is why a /24 provides 254 usable addresses, not 256. Microsoft’s TCP/IP addressing and subnetting article works through the same example, using 192.168.123.1 to 192.168.123.254 for hosts because host portions of all zeros and all ones are invalid. To check whether one address matches a specific subnet — or several at once, such as a list of firewall allowlist entries — AdminKit’s IP in CIDR tool runs that containment test offline.

Frequently asked questions

Why isn't a /24 subnet 256 usable addresses?

Because the first address (all host bits zero) identifies the network itself and the last address (all host bits one) is the broadcast address -- both reserved rather than assignable to a device, leaving 254 usable addresses in a /24.

What's the difference between a subnet and CIDR?

A subnet is the logical network segment itself; CIDR is the notation (like /24) used to express how many bits of an address identify that subnet versus the host, as defined in RFC 4632.

How do I know if an address is in a private or reserved range?

The same prefix-length math used to size a subnet also checks containment -- for example, whether an address falls inside the RFC 1918 private ranges or the 100.64.0.0/10 CGNAT block, which is what AdminKit's subnet calculator checks directly.

Why would I split a network into subnets at all?

Subnetting lets an organization separate traffic for administrative or security reasons -- for example, keeping a guest Wi-Fi network isolated from internal servers -- without needing a separate physical network for each.