Subnet Match

All games
N10-009

Study for CompTIA Network+

Ten-question drills, short study cards and every answer explained, in CertPrep+.

Subnetting cheat sheet

What subnetting is, explained simply, then everything in CompTIA Network+ N10-009 objective 1.7 (private ranges, APIPA, loopback, CIDR, VLSM and the address classes), a prefix chart from /8 to /30 with masks and host counts, and the four steps to find any subnet.

Show the full subnetting list

Core 13 is everything named in CompTIA Network+ N10-009 objective 1.7: public vs. private (APIPA, RFC1918, loopback), subnetting (VLSM, CIDR) and the address classes. Ext. 27 adds addresses to identify, the kind of scenario 1.7 asks for. Masks, Hosts and Find it drill the subnetting math. The prefix chart is our own.

ItemWhat it is
What subnetting is
SubnettingSplitting one network into smaller networksEach subnet gets its own range of addresses. That keeps traffic local, cuts down broadcasts and gives each team, floor or VLAN only the addresses it needs.
ELI5One big apartment building split into smaller onesThe network part of an address is the building's street number and the host part is the apartment number. Subnetting turns one huge building into several smaller ones, each with its own street number, so mail for one building never wanders through the others. The mask tells you where the street number ends and the apartment number starts.
/n (prefix)How many of the 32 bits name the network/26 means the first 26 bits are the network and the last 6 count the hosts. 6 host bits give 64 addresses.
Network addressThe first address in a subnetIt names the subnet itself, so it isn't given to a host.
BroadcastThe last address in a subnetA message sent to it reaches every host in the subnet. It isn't given to a host either.
Usable hostsAddresses minus 2The network and broadcast addresses are taken, so a /26 has 64 − 2 = 62 hosts.
Core 13
10.0.0.0/8RFC1918 privatePrivate range 10.0.0.0 to 10.255.255.255. Not routed on the internet
172.16.0.0/12RFC1918 privatePrivate range 172.16.0.0 to 172.31.255.255
192.168.0.0/16RFC1918 privatePrivate range 192.168.0.0 to 192.168.255.255, the one most home routers use
169.254.0.0/16APIPASelf-assigned when a DHCP client gets no answer. Works on the local link only
127.0.0.0/8LoopbackThe host talking to itself. 127.0.0.1 is localhost
First octet 1–126Class ADefault mask 255.0.0.0 (/8). 127 is set aside for loopback
First octet 128–191Class BDefault mask 255.255.0.0 (/16)
First octet 192–223Class CDefault mask 255.255.255.0 (/24)
First octet 224–239Class D · MulticastMulticast, one sender to a group of listeners. No default mask
First octet 240–255Class E · ExperimentalReserved for experimental use. Not assigned to hosts
Public addressRoutable on the internetAny address outside the private, APIPA, loopback, multicast and reserved ranges
CIDRPrefix written as /n, like /26Classless Inter-Domain Routing. The /n counts the network bits, replacing classes
VLSMDifferent mask sizes in one networkVariable Length Subnet Mask. Size each subnet to fit, like a /30 for a link and a /24 for a LAN
Added in Ext. 27
10.200.4.17RFC1918 privateInside 10.0.0.0/8
172.31.250.9RFC1918 privateInside 172.16.0.0/12, which runs to 172.31.255.255
192.168.1.254RFC1918 privateInside 192.168.0.0/16
169.254.10.3APIPAA 169.254 address usually means DHCP failed
127.0.0.53LoopbackAll of 127.0.0.0/8 is loopback, not just 127.0.0.1
224.0.0.5Class D · MulticastMulticast (OSPF routers use it)
239.255.255.250Class D · MulticastMulticast (SSDP device discovery uses it)
8.8.8.8PublicA public address (Google DNS)
172.32.0.5PublicPublic. The private 172 range stops at 172.31
192.169.0.1PublicPublic. Only 192.168 is private
255.0.0.0Class A · default maskThe Class A default mask, /8
255.255.0.0Class B · default maskThe Class B default mask, /16
255.255.255.0Class C · default maskThe Class C default mask, /24
240.1.2.3Class E · ExperimentalClass E, reserved. You will not see it on a host
Prefix chart · /8 to /30
/8255.0.0.016,777,216 addresses · 16,777,214 usable
/9255.128.0.08,388,608 addresses · 8,388,606 usable
/10255.192.0.04,194,304 addresses · 4,194,302 usable
/11255.224.0.02,097,152 addresses · 2,097,150 usable
/12255.240.0.01,048,576 addresses · 1,048,574 usable
/13255.248.0.0524,288 addresses · 524,286 usable
/14255.252.0.0262,144 addresses · 262,142 usable
/15255.254.0.0131,072 addresses · 131,070 usable
/16255.255.0.065,536 addresses · 65,534 usable
/17255.255.128.032,768 addresses · 32,766 usable
/18255.255.192.016,384 addresses · 16,382 usable
/19255.255.224.08,192 addresses · 8,190 usable
/20255.255.240.04,096 addresses · 4,094 usable
/21255.255.248.02,048 addresses · 2,046 usable
/22255.255.252.01,024 addresses · 1,022 usable
/23255.255.254.0512 addresses · 510 usable
/24255.255.255.0256 addresses · 254 usable
/25255.255.255.128128 addresses · 126 usable
/26255.255.255.19264 addresses · 62 usable
/27255.255.255.22432 addresses · 30 usable
/28255.255.255.24016 addresses · 14 usable
/29255.255.255.2488 addresses · 6 usable
/30255.255.255.2524 addresses · 2 usable
Find it · the method
1Find the octet the prefix ends in/25 to /30 is the fourth octet, /17 to /24 the third
2Block size = 256 minus that mask octet/26: mask .192, so 256 − 192 = 64
3Count up in blocks to find the IP's block0, 64, 128, 192. 200 falls in 192–255
4Network is the block's first address, broadcast its lastFirst usable host = network + 1, last = broadcast − 1
Printable cheat sheetDownload PDF

More games

All games
ProCourses + CertPrep+

Build the skills, and pass the cert.

All four ProCourses plus CertPrep+ for 12 certs from CompTIA, AWS, Microsoft and ISC2.

$15/mo