Subnetting Workshop | Networking
Overview
Section titled “Overview”Subnetting is the process of dividing a single IP network into smaller, more manageable Sub-networks. Every systems engineer needs fluency in subnetting — it is non-negotiable for network Design, troubleshooting, firewall rule authoring, and certification exams. This workshop covers the Binary method, VLSM, route summarization, wildcard masks, IPv6 subnetting, and a systematic approach To subnet planning.
The core skill is answering this question: given a network and a requirement, find the subnet mask, Network address, broadcast address, and usable host range. This document provides the method, Practice, and reference material to develop that skill.
Binary Method: Step by Step
Section titled “Binary Method: Step by Step”The binary method is the most reliable approach to subnetting because it works for every problem Type. Decimal tricks break down at edge cases; binary does not.
The Subnet Mask in Binary
Section titled “The Subnet Mask in Binary”A subnet mask is a 32-bit number where the leftmost bits (the network portion) are all 1s and the Rightmost bits (the host portion) are all 0s. The boundary between 1s and 0s is the subnet boundary.
/24 mask: 11111111.11111111.11111111.00000000 = 255.255.255.0/25 mask: 11111111.11111111.11111111.10000000 = 255.255.255.128/26 mask: 11111111.11111111.11111111.11000000 = 255.255.255.192/27 mask: 11111111.11111111.11111111.11100000 = 255.255.255.224/28 mask: 11111111.11111111.11111111.11110000 = 255.255.255.240/29 mask: 11111111.11111111.11111111.11111000 = 255.255.255.248/30 mask: 11111111.11111111.11111111.11111100 = 255.255.255.252/32 mask: 11111111.11111111.11111111.11111111 = 255.255.255.255Step-by-Step Method
Section titled “Step-by-Step Method”Given: IP address 10.4.220.75 and prefix length /26. Find network address, broadcast address, First host, last host, and total usable hosts.
Step 1: Convert the IP address to binary.
10 = 000010104 = 00000100220 = 1101110075 = 01001011So 10.4.220.75 = 00001010.00000100.11011100.01001011
Step 2: Write the subnet mask in binary.
/26 means the first 26 bits are the network portion:
11111111.11111111.11111111.11000000Step 3: Apply the mask (bitwise AND) to find the network address.
IP: 00001010.00000100.11011100.01001011Mask: 11111111.11111111.11111111.11000000AND: 00001010.00000100.11011100.01000000Convert back to decimal: 10.4.220.64
Step 4: Find the broadcast address.
Set all host bits to 1:
Network: 00001010.00000100.11011100.01000000Host bits: ^^^^^^Broadcast: 00001010.00000100.11011100.01111111Convert back to decimal: 10.4.220.127
Step 5: Determine first and last usable hosts.
First host = network address + 1 = 10.4.220.65Last host = broadcast address - 1 = 10.4.220.126Step 6: Calculate total usable hosts.
Host bits = . Total addresses = . Usable = .
Intuition
Section titled “Intuition”Subnetting is dividing a network into smaller, manageable pieces. Think of an IP address as a street address: the network portion is the street name, and the host portion is the house number. A subnet mask determines which bits are the street name and which are the house number. CIDR notation (like /24) is a shorthand for the mask length. Subnetting lets you allocate addresses efficiently, reduce broadcast domains, and isolate network segments for security.