IP Subnetting
Chapter 8 — IP Subnetting, Troubleshooting & NAT
Calculate the subnet, see the binary boundary, prove the path, then translate the address. This revised study map combines a full IPv4 subnet engine with VLSM design, IPv4 diagnostics, and NAT/PAT exam workflows.
Why Subnet?
Subnetting divides a larger IPv4 network into smaller logical networks. Each boundary controls broadcasts, organizes addressing, and creates a clearer routing and security design.
Smaller broadcasts
Fewer hosts process each broadcast and local traffic stays within a smaller domain.
Simpler management
Address ranges can identify buildings, VLANs, departments, and security zones.
Fault isolation
Failures and policy boundaries can be limited to a smaller segment.
Efficient addressing
CIDR and VLSM allocate address space according to actual host needs.
Subnet Terms & Formulas
2ˢ
s is the number of borrowed subnet bits. Modern subnetting includes subnet zero and the all-ones subnet.
2ʰ
h is the number of remaining host bits.
2ʰ − 2
Traditional LAN calculations subtract the network and broadcast addresses.
256 − mask
Subtract the interesting mask octet from 256 to find subnet increments.
Interactive IPv4 Subnet Calculator
Enter any IPv4 address and a CIDR prefix from /0 through /32. The network map updates immediately.
Binary Boundary & Subnet Map
Teal bits identify the network; amber bits identify hosts. For /24 through /32, the table lists every subnet inside the containing /24.
| Network address | Usable host range / endpoints | Broadcast |
|---|
-Short CIDR form-Unsigned integer ID-Hexadecimal ID-Reverse-DNS pointer-IPv4-mapped IPv6-6to4 /48 prefixThe Six-Step Method
Worked Examples
CIDR & Host Requirement Reference
| Prefix | Subnet mask | Total addresses | Traditional usable | Block size |
|---|
VLSM Planner
Allocate the largest requirement first, use aligned contiguous boundaries, and record every network, host range, and broadcast before assigning the next block.
| Need | Prefix | Network | Valid hosts | Broadcast |
|---|
Common Subnetting Traps
Four Diagnostic Pings
Run tests from the smallest proven scope outward: stack → interface → local network → remote network.
Symptom-to-Cause Explorer
NAT & PAT
Static NAT
One private address maps to one public address; useful for publishing a server.
Dynamic NAT
Private clients receive temporary one-to-one translations from a public pool.
PAT
Many private sessions share one or a few public IPs and are distinguished by ports.
NAT Address Names & PAT Flow
| Name | Meaning | Example |
|---|---|---|
| Inside local | Inside host before translation | 192.168.1.10 |
| Inside global | Public address representing inside host | 203.0.113.20 |
| Outside global | Outside host on public network | 198.51.100.40 |
| Outside local | Outside host as represented internally | Often same as outside global |
PowerShell 7 Practice
Get-NetIPConfigurationAddress, gateway, DNS, interfaceGet-NetIPAddress -AddressFamily IPv4IPv4 addresses and prefixesGet-NetRoute -AddressFamily IPv4Connected and default routesGet-NetNeighbor -AddressFamily IPv4ARP stateTest-Connection 127.0.0.1 -Count 2Local stackTest-NetConnection 1.1.1.1Remote IP reachabilityResolve-DnsName example.comDNS separatelyroute print -4IPv4 routing tableExam Check
Fifteen questions drawn directly from the Chapter 8 manual.