Docsity

Subnetting Cheat Sheet — IP Addressing Made Simple, Schemes and Mind Maps of Networking

Toggle sidebar
bg1
ByteBar · Subnetting Cheat Sheet — for personal use only 1
B Y T E B A R
SUBNETTING CHEAT SHEET
Print this. Tape it to the wall. Memorize it, then lose it.
The place-value row — memorize this
128 64 32 16 8 4 2 1
Each bit is double the one to its right. A 1 means “add this.” 172 = 128+32+8+4 → 10101100.
CIDR ↔ mask ↔ block size ↔ usable hosts
Prefix Mask Block Usable
/8 255.0.0.0 16,777,216 16,777,214
/9 255.128.0.0 8,388,608 8,388,606
/10 255.192.0.0 4,194,304 4,194,302
/11 255.224.0.0 2,097,152 2,097,150
/12 255.240.0.0 1,048,576 1,048,574
/13 255.248.0.0 524,288 524,286
/14 255.252.0.0 262,144 262,142
/15 255.254.0.0 131,072 131,070
/16 255.255.0.0 65,536 65,534
/17 255.255.128.0 32,768 32,766
/18 255.255.192.0 16,384 16,382
/19 255.255.224.0 8,192 8,190
Prefix Mask Block Usable
/20 255.255.240.0 4,096 4,094
/21 255.255.248.0 2,048 2,046
/22 255.255.252.0 1,024 1,022
/23 255.255.254.0 512 510
/24 255.255.255.0 256 254
/25 255.255.255.128 128 126
/26 255.255.255.192 64 62
/27 255.255.255.224 32 30
/28 255.255.255.240 16 14
/29 255.255.255.248 8 6
/30 255.255.255.252 4 2
The magic-number method (60 seconds)
•1. Interesting octet: first mask octet that isn’t 255.
•2. Magic number: 256 − interesting-octet mask value.
•3. Count by the magic number in the interesting octet; bracket the IP.
•4. Network = bracket start. Broadcast = next bracket − 1.
•5. Usable = network+1 through broadcast−1.
VLSM rule
Sort largest → smallest. Hosts+2 → round UP to a power of two → prefix = 32 − host bits. WAN links (2 hosts) = /30.
Verify: all inside the base, none overlapping.
Exam traps
•Network and broadcast addresses are never valid hosts — eliminate on sight.
•“How many subnets” from a /24 to /27 is 23 = 8, not 6.
•A /31 has 0 usable hosts in the classic formula — exams still test it.
•Supernetting: count the networks as a power of two, shorten the prefix by that many bits.
•Wrong-octet masks (e.g. 255.255.0.255) are invalid — the 1-bits must be contiguous.
pf3

Partial preview of the text

Download Subnetting Cheat Sheet — IP Addressing Made Simple and more Schemes and Mind Maps Networking in PDF only on Docsity!

ByteBar · Subnetting Cheat Sheet — for personal use only 1

B Y T E B A R

SUBNETTING CHEAT SHEET Print this. Tape it to the wall. Memorize it, then lose it.

The place-value row — memorize this

128 64 32 16 8 4 2 1 Each bit is double the one to its right. A 1 means “add this.” 172 = 128+32+8+4 → 10101100.

CIDR ↔ mask ↔ block size ↔ usable hosts

Prefix Mask Block Usable

/8 255.0.0.0 16,777,216 16,777,

/9 255.128.0.0 8,388,608 8,388,

/10 255.192.0.0 4,194,304 4,194,

/11 255.224.0.0 2,097,152 2,097,

/12 255.240.0.0 1,048,576 1,048,

/13 255.248.0.0 524,288 524,

/14 255.252.0.0 262,144 262,

/15 255.254.0.0 131,072 131,

/16 255.255.0.0 65,536 65,

/17 255.255.128.0 32,768 32,

/18 255.255.192.0 16,384 16,

/19 255.255.224.0 8,192 8,

Prefix Mask Block Usable /20 255.255.240.0 4,096 4, /21 255.255.248.0 2,048 2, /22 255.255.252.0 1,024 1, /23 255.255.254.0 512 510 /24 255.255.255.0 256 254 /25 255.255.255.128 128 126 /26 255.255.255.192 64 62 /27 255.255.255.224 32 30 /28 255.255.255.240 16 14 /29 255.255.255.248 8 6 /30 255.255.255.252 4 2

The magic-number method (60 seconds)

    1. Interesting octet: first mask octet that isn’t 255.
    1. Magic number: 256 − interesting-octet mask value.
    1. Count by the magic number in the interesting octet; bracket the IP.
    1. Network = bracket start. Broadcast = next bracket − 1.
    1. Usable = network+1 through broadcast−1.

VLSM rule Sort largest → smallest. Hosts+2 → round UP to a power of two → prefix = 32 − host bits. WAN links (2 hosts) = /30. Verify: all inside the base, none overlapping.

Exam traps

  • Network and broadcast addresses are never valid hosts — eliminate on sight.
  • “How many subnets” from a /24 to /27 is 2^3 = 8, not 6.
  • A /31 has 0 usable hosts in the classic formula — exams still test it.
  • Supernetting: count the networks as a power of two, shorten the prefix by that many bits.
  • Wrong-octet masks (e.g. 255.255.0.255) are invalid — the 1-bits must be contiguous.

ByteBar · Subnetting Cheat Sheet — for personal use only 2

  • Speed matters: a 90-second answer you can’t do in 30 seconds is a wrong answer under pressure.