Why subnet?

Step-by-step: split a /24 into four /26s

A /24 has 8 host bits. To get four equal subnets, we need 2 additional network bits — yielding a /26. Each /26 has 64 addresses (62 usable).

SubnetRangeHostsBroadcast
10.0.0.0/2610.0.0.0 – 10.0.0.6310.0.0.1 – 10.0.0.6210.0.0.63
10.0.0.64/2610.0.0.64 – 10.0.0.12710.0.0.65 – 10.0.0.12610.0.0.127
10.0.0.128/2610.0.0.128 – 10.0.0.19110.0.0.129 – 10.0.0.19010.0.0.191
10.0.0.192/2610.0.0.192 – 10.0.0.25510.0.0.193 – 10.0.0.25410.0.0.255

Variable-Length Subnet Masking (VLSM)

Real networks rarely need equal-sized subnets. VLSM lets you split a block into pieces of different sizes. A common pattern: carve out a /29 for a router-router link from a /24, then split the remainder into /25s.

i

Rule of thumb. Each one-bit increase in the prefix halves the subnet size. Going from /24 to /25 halves it, /26 quarters it, and so on.