GOJIHA · Issue Nº 01
/24
Field Manual Vol. I · Networks Revised MMXXVI

On Subnetting

A practical, hands-on field guide to the geometry of the IPv4 address space — how to slice it, count it, and command it with confidence.

07 Articles
Worked examples
04 Live instruments
≈26m Reading time
Begin reading
I 01

Article One · Anatomy

The Address

An IPv4 address is a 32-bit unsigned integer — a single number, written for human eyes as four decimal octets separated by full stops. Every subnetting decision begins here.

Every device that speaks IPv4 holds a coordinate in a space of exactly 4,294,967,296 positions — two to the thirty-second power. Subnetting is the practice of carving that space into smaller, meaningful neighbourhoods. To carve it well, first you must read it.

Each of the four numbers in 192.168.42.17 is an octet: eight binary digits, with values from 0 to 255. Concatenated, they form the full thirty-two-bit address. The diagram opposite shows every bit, drawn at full scale.

Fig. 1.1 Anatomy of an IPv4 address, drawn bit-for-bit. Click any octet to edit it.
Bit set (1) Bit clear (0) Editable octet

Reading binary is mostly a parlor trick: each position in an octet represents a power of two — 128 64 32 16 8 4 2 1 from left to right. Turn a bit on, add its value. Add them all, and you have the decimal value of the octet. Subnetting will lean on this constantly.

The address alone is not enough. 192.168.42.17 says nothing about which devices share a neighbourhood with it. For that, we need a mask — the subject of Article II.

II 02

Article Two · Geometry

The Mask

A subnet mask is a second 32-bit number that draws a vertical line through the address, splitting it into a network portion (left) and a host portion (right).

In binary, a mask is always a run of ones followed by a run of zeros. The number of ones is the prefix length, written with a slash: /24 means twenty-four ones, eight zeros. This shorthand is called CIDR notation, after the 1993 standard Classless Inter-Domain Routing.

Fig. 2.1 Slide the dial to choose a prefix length. Watch the mask, the network, and the host space respond.
Prefix /24
Mask (decimal) 255.255.255.0
Mask (binary)
Network bits 24
Host bits 8
Total addresses 256
Usable hosts 254
III 03

Article Three · Apparatus

The Calculator

Enter any IPv4 address and prefix. The instrument returns the network address, broadcast, host range, wildcard, and class — all derived from first principles, in your browser.

IV 04

Article Four · Historiography

The Classes

Before CIDR, address space was carved by fixed classes. The classes are deprecated for routing but they shape the private ranges still in daily use.

A nnnnnnn
Range
1.0.0.0 — 126.255.255.255
Default mask
/8 · 255.0.0.0
Networks
126
Hosts each
16,777,214
Private
10.0.0.0/8
B nnnnnn
Range
128.0.0.0 — 191.255.255.255
Default mask
/16 · 255.255.0.0
Networks
16,384
Hosts each
65,534
Private
172.16.0.0/12
C nnnnn
Range
192.0.0.0 — 223.255.255.255
Default mask
/24 · 255.255.255.0
Networks
2,097,152
Hosts each
254
Private
192.168.0.0/16
D nnnn
Range
224.0.0.0 — 239.255.255.255
Purpose
Multicast
RFC
RFC 3171
Notable
224.0.0.1 — All hosts
Routing
Group-based
E nnn
Range
240.0.0.0 — 255.255.255.254
Purpose
Reserved · Experimental
RFC
RFC 1112
Status
Not routable
Hosts
≈ 268M wasted
V 05

Article Five · Praxis

Subdividing

Take one network. Borrow bits from its host portion. Each borrowed bit doubles the number of subnets and halves the size of each one. This is VLSM.

Fig. 5.1 A single /24 network split into equal pieces. Choose how many bits to borrow.
    VI 06

    Article Six · Reference

    The Cheatsheet

    The full table, /0 through /32. Print it, frame it, tape it to the wall above your terminal.

    CIDR Subnet mask Wildcard Total Usable hosts Notable
    VII 07

    Article Seven · Examination

    The Practice

    Ten randomly-drawn problems. Calculate by hand or by head — verify with the apparatus from Article III. The bureau keeps no record of your score.

    Question 1 / 10
    Score · 0