An IPv4 address looks like one fact and is actually two. It is 32 bits, written as four decimal octets, and every address answers two questions at once: which network is this, and which host on that network is it? The subnet mask draws the line between those two answers. Its shorthand is the prefix length: /24 means 24 mask bits, leaving the rest for hosts. Everything in subnetting is the arithmetic of that line, and the examination tests it without a calculator beyond your own head. The good news is that the arithmetic is a method, not a gift.

Learn one method and drill it until it is boring: find the block size, find the boundaries, count. Worked slowly once, it explains every chart others merely memorize.

Work one network completely

Take 10.42.30.0/24, a Kingsmere site network. The mask /24 leaves 8 host bits, so the network holds 2 to the power of 8, which is 256 addresses, from 10.42.30.0 to 10.42.30.255. Two are reserved by rule. The first, with all host bits zero, names the network itself. The last, with all host bits one, is the broadcast address, heard by every host. Usable addresses are therefore 256 minus 2, which is 254, running from .1 to .254.

A memorized chart might tell you that /24 means 254 hosts without telling you why. Now the why is visible, and the why generalizes. A /25 leaves 7 host bits: 128 addresses, 126 usable. A /26 gives 64 and 62. A /27 gives 32 and 30. A /28 gives 16 and 14. A /30 gives 4 and 2, which is why /30 is the classic mask for a router-to-router link needing exactly two addresses, with /31 as its modern successor where the syllabus allows it. Going the other way, a /23 leaves 9 host bits: 512 addresses, 510 usable. A /22 gives 1,024 and 1,022. The formula never changes: usable addresses equal 2 raised to the host bits, minus 2.

Moving the line: block size and boundaries

Subnetting is moving that line to carve one block into several. The method works in the octet where the mask falls: block size is 256 minus the mask value there. For a /26, the mask’s last octet is 192, so blocks are 64 wide and subnets begin at .0, .64, .128, and .192. For a /27 the last octet is 224, blocks are 32 wide, and subnets begin at .0, .32, .64, .96.

Given any address, its subnet is the boundary at or below it. The address 10.42.30.77/26 lives in the .64 subnet, whose broadcast is the next boundary minus one, .127, and whose usable range is .65 to .126. Given a requirement instead, choose the smallest block that funds it. Fifty hosts need 6 host bits, because 2 to the power of 6 minus 2 is 62 usable, so the answer is a /26. Thirty hosts fit exactly in a /27, with 30 usable — exactly, with no room for the thirty-first device, a fit a designer should refuse for a growing office even though the arithmetic allows it. That sizing judgment — smallest block that funds the need plus honest growth, applied largest first — is variable-length subnet masking. It is the whole of address-plan design at this level: sort largest to smallest, assign each the smallest sufficient block at the next free boundary, and never let two plans overlap, because overlapping ranges are faults not yet noticed.

Kingsmere’s plan shows the method checked. The Community Services Center needs four networks — staff with 55 hosts, public Wi-Fi with 110, building systems with 25, and a link to City Hall with 2 — carved from 10.42.50.0/24. Largest first: public Wi-Fi needs 7 host bits, so it takes a /25 with 126 usable, at 10.42.50.0/25, spanning .0 to .127. Staff needs a /26 with 62 usable, at the next free boundary, 10.42.50.128/26, spanning .128 to .191. Building systems needs a /27 with 30 usable, at 10.42.50.192/27, spanning .192 to .223. The link takes a /30 at 10.42.50.224/30, spanning .224 to .227, usable .225 and .226. What remains, .228 to .255, is reserve, named as reserve, because a plan that hides its spare capacity invites the next engineer to spend it twice. Check the spine: 128 plus 64 plus 32 plus 4 equals 228 consumed, 28 spare, no overlaps. If your arithmetic disagrees with a plan you are handed, believe your arithmetic and investigate the plan.

Three closing facts

First, private and public addresses are different worlds. The ranges 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are private: usable inside any organization, never routed on the public internet. That is why Kingsmere’s plan is legitimate.

Second, some addresses are special. The address 127.0.0.1 is the host talking to itself: loopback. An address beginning 169.254 is a host’s self-assigned cry for help when no addressing service answered.

Third, the gateway convention decides whether a correct address is usable at all. A host’s range is only usable with a default gateway, the router address — conventionally the first or last usable address of the subnet — to which the host hands anything not local. A host with a perfect address and a gateway outside its own subnet has, in effect, no gateway at all: it cannot even reach the router to ask.

The misconception to correct is the discouraging one: subnetting is a talent, some people see it instantly, and the rest of us use a chart. Subnetting is a procedure with three steps, and instant-looking engineers are running it fast, not skipping it. The chart fails precisely where the examination lives: the unfamiliar mask, the boundary case, the plan that must be checked rather than recalled. Learn the method once, work it slowly twenty times, and speed arrives as a residue of accuracy — never the other way round.

Experience it, don’t just read about it

Subnetting is a three-step procedure of block size, boundaries, and counting is Concept 4 of CCNA Readiness: Networking's Other Gate (Course No. 510), from Cognosco Learning, a learning company powered by AI. The course builds CCNA readiness beyond this distinction — Layers Decide — Encapsulation and What Each Device Does, How a Router Chooses — The Routing Table and Its Order of Rules, and Troubleshoot from Evidence — A Method, Not a Mood — each worked through with an Agentic Socratic AI coach, one learner at a time. Try a Free Preview at cognoscolearning.com.

Try a Free PreviewAll Signature CoursesThe Corporate License

Navigate your own course.

← All Insights

© 2026 Cognosco Learning. All rights reserved.