Addressing
VLSM
Cutting one block of addresses into subnets of different sizes, each as big as its network needs.
A /n subnet holds 2^(32 − n) addresses, two of them reserved, so 50 PCs need a /26 (62), 20 phones a /27 (30) and a few printers a /28 (14). Carve the biggest first, each starting on a multiple of its own size, and they never overlap. A link between two routers takes a /30 (two hosts) or a /31 (RFC 3021: both addresses are hosts, no network or broadcast address). Subnets carved from one block can later be summarised into one route.
Read next
- Subnet and prefix length A block of addresses on one network, written as address/length: 10.0.1.0/24 holds 256 addresses.
- Route summarisation One route standing for many: a shorter prefix that covers several networks behind the same next hop.
- IP address A device's address across networks: 32 bits, written as four numbers like 10.0.1.10.
- Wildcard mask A mask turned inside out, as Cisco ACLs and OSPF use it: 0 bits must match, 1 bits are free.