IP Subnetting, Troubleshooting IP, and NAT
Chapter 8 — IP Subnetting, Troubleshooting & NAT
Find the interesting octet, calculate the block, prove the path, then translate the address. This study map turns subnet math, VLSM design, IPv4 diagnostics, and NAT/PAT into repeatable 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.
CIDR & Mask Explorer
Select a prefix to see its mask, address capacity, traditional usable hosts, and block size.
Interactive Subnet Calculator
Enter an IPv4 address and prefix from /8 through /30.
The Six-Step Method
Worked Examples
Host Requirement Shortcut
| Needed hosts | Host bits | Prefix | Usable |
|---|---|---|---|
| 2 | 2 | /30 | 2 |
| 6 | 3 | /29 | 6 |
| 14 | 4 | /28 | 14 |
| 30 | 5 | /27 | 30 |
| 62 | 6 | /26 | 62 |
| 126 | 7 | /25 | 126 |
| 254 | 8 | /24 | 254 |
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.