Skip to content
BENIBIX Learn

Subnet

Infrastructure🌐 NetworkingNetwork Addresses

Also known as Subnetwork, CIDR Block, CIDR Notation, Subnet Mask

A block of IP addresses that belong together. It is written like 192.168.1.0/24.

Think of it like

It is like one street in a town. All the houses on it share the first part of their address.

Example

A cloud network uses 10.0.1.0/24 for web servers and 10.0.2.0/24 for databases. Firewall rules can then treat the two groups in different ways.

Why it matters

Subnets decide which machines can reach each other. Cloud networks and firewall rules use them.

Definition

A subnet is a block of IP addresses that belong together. It is written as a start address and a slash number, like 192.168.1.0/24. The slash number says how many bits at the front are fixed. A /24 leaves the last number free, which gives 256 addresses. Big networks are split into subnets to keep groups of machines apart.
The home network is one subnet, 192.168.1.0/24. Every device inside starts with the same three numbers.

Common mistake

Thinking a /24 holds 256 devices. The first and last addresses are kept for the network itself, so 254 devices fit.

Key takeaways

  1. 1
    One block. Addresses that share a start.
  2. 2
    Slash number. Bigger number, smaller block.
  3. 3
    Draws lines. Keeps groups of machines apart.

Learn it properly