gor.bio wiki

Subnetting and CIDR

Dividing IP address space into subnets and the Classless Inter-Domain Routing notation that replaced rigid classful addressing.

Category: Networking · Created: 2026-08-18 · Updated: 2026-08-18

Illustration: Advertised routes before CIDR-ar
Illustration: Advertised routes before CIDR-ar · Image: <span title="academic researcher in electronics engineering, a university professor in France, and activist in, CC BY-SA 4.0, via Wikimedia Commons.

Subnetting splits a block of IP addresses into smaller, administratively separate networks called subnets. The original IPv4 design used fixed classes — A, B, and C — which wasted enormous address ranges, so in 1993 classless routing (CIDR, Classless Inter-Domain Routing) replaced them. CIDR expresses any block as an address followed by a prefix length: 192.168.1.0/24 denotes the 256 addresses whose first 24 bits are fixed, 192.168.1.0 through 192.168.1.255.

The subnet mask is the prefix written in dotted form: /24 is 255.255.255.0, /16 is 255.255.0.0, /28 is 255.255.255.240. The network address is the block's lowest address (all host bits zero) and the broadcast address the highest (all host bits one), so a /28 block of 16 addresses provides 14 usable host addresses. Subnetting is why an organization can carve one purchased block into per-department or per-VLAN networks while still advertising a single route to the internet.

PrefixMaskAddressesUsable hosts
/24255.255.255.0256254
/28255.255.255.2401614
/30255.255.255.25242

Routers use the longest-prefix-match rule: when several routes match a destination, the most specific one wins, which is what allows both a /8 summary and a /30 point-to-point link to coexist. Subnetting shrinks broadcast domains (fewer hosts receive each broadcast), improves security by isolating traffic, and is the backbone of how the Domain Name System addresses and the TCP networks actually route packets. IPv6 removes the need for address conservation but keeps the same prefix notation, e.g. 2001:db8::/32.

Tags

ip addressing networking routing subnetting

Related articles

This text may be freely copied, modified, and reused. See Content Reuse.