1.5 IPv4 Addressing & Subnetting
The mathematical core of routing. Master Classless Inter-Domain Routing (CIDR), Variable Length Subnet Masks (VLSM), and the rapid mental math required to design scalable networks.
RFC 1918 (Private IP Spaces)
These IP addresses are non-routable on the public internet. You can use them freely inside your client environments, but a NAT router must translate them to a public IP before traffic crosses the ISP boundary.
| Class | Address Range | Default CIDR | Typical MSP Deployment |
|---|---|---|---|
| Class A | 10.0.0.0 – 10.255.255.255 | /8 | Massive enterprise networks and SD-WAN overlays. |
| Class B | 172.16.0.0 – 172.31.255.255 | /12 | Medium-to-large campus networks and datacenter fabrics. |
| Class C | 192.168.0.0 – 192.168.255.255 | /16 | Small Office/Home Office (SOHO) and small MSP clients. |
The Master CIDR Reference Chart
The Universal Formula
To calculate usable hosts: Usable Hosts = (2 ^ Host Bits) - 2
- -1Network Address (The very first IP in the block, used to identify the network itself).
- -1Broadcast Address (The very last IP in the block, used to send packets to every host).
Mental Math & The Subnet Cheat Code
Making the mental leap from seeing a CIDR (like /26) to instantly knowing the Subnet Mask and Block Size is the biggest "aha!" moment in networking. The CIDR number literally just tells you how many "1s" to write down from left to right across the 32-bit IP address.
Example: Decoding a /26
Write down twenty-six 1s, grouped into four 8-bit octets:
The first three octets are completely full (8 bits each), which equals 255. The 4th octet is our Interesting Octet (where the 1s stop). It has two 1s turned on. If you memorize the sequence below, you instantly know that two bits equals 192.
Subnet Mask: 255.255.255.192
Block Size: 256 - 192 = 64
The 8-Bit Memorization Grid
There are only 8 possible values you will ever see in a subnet mask. Memorize this sequence to calculate block sizes instantly on the exam whiteboard.
Special Addressing Rules
APIPA (Link-Local)
169.254.x.x /16If a PC is configured for DHCP but cannot reach the server, it assigns itself this address. It cannot route to the internet.
Loopback
127.0.0.0 /8Used to test the local TCP/IP stack. Pinging 127.0.0.1 never leaves the physical Network Interface Card (NIC).
Default Route
0.0.0.0 /0The Gateway of Last Resort. Matches all IP addresses. Used to route traffic to the ISP.
Local Broadcast
255.255.255.255Targeted at all hosts on the local physical network. Routers will drop this packet to prevent broadcast storms.