Subnetting Guide


This is my personal subnetting quick reference guide that I put together for the Network+.

How to Subnet

  1. Determine number of subnet mask bits

    • Given prefix notation (`/n)
      • n = entire network mask
      • e.g. 192.168.1.0/26
    • Given subnet mask (255.x.y.z)
      • uses decimal value
      • e.g. class C 255.255.255.240
  2. Determine number of subnets

  3. Determine number of hosts per subnet

  4. Determine the subnet IDs

    • Convert the subnet octet to decimal value
    • subtract that value from 256
    • that’s your starting subnet
    • each following subnet ID is the next doubling of that initial value
      • e.g., if 16, then will be 32, 48, 64

Equations

  • Number of subnets =
    • = number of subnet bits
    • each power of 2 is double previous one
1248163264128256
  • Number of hosts per subnet =

    • = number of host bits
    • 2 IP addresses reserved for network IP and for broadcast IP
  • Subnet Interval =

    • Each subnet is a multiple of this number
    • This number starts the second subnet
    • This is also = # of hosts per subnet
    • E.g.,
      • first subnet is always the initial network
        • 192.168.1.0
      • second would be

Decimal values for the number of bits set to 1 in an octet within a mask:

12345678
128192224240248252254255

Subnet Cheat Sheet

Subnets1248163264128256
Hosts2561286432168421
Decimal Mask0128192224240248252254255
Subnet bits012345678