If an IP address identifies your device on a network, the subnet mask tells the device:
“Which part of this IP address is the network, and which part is the device?”
This is a high-yield concept for the CompTIA A+ exam and real troubleshooting.
A subnet mask is a number that works with an IP address to determine:
Simple version: A subnet mask draws the “local neighborhood boundary” for your IP address.
The most common subnet mask you’ll see is:
255.255.255.0
Example IP configuration:
IP Address: 192.168.1.50 Subnet Mask: 255.255.255.0 Gateway: 192.168.1.1
On a /24 network (255.255.255.0), devices on the same local network usually share the first three numbers:
192.168.1.X
If your computer wants to talk to another device:
Exam idea: Wrong subnet mask can cause “local works, internet fails” or “internet works, local devices missing.”
Open Command Prompt and run:
ipconfig
Or for more detail:
ipconfig /all
Look for the line labeled Subnet Mask.
Quick mental shortcut:
More 255s at the start = a “bigger network portion.” More zeros at the end = “more device addresses available.”
A student laptop can’t print to a network printer, but internet works fine.
You check the IP settings and find:
IP Address: 192.168.1.55 Subnet Mask: 255.255.0.0
But all other devices are using:
Subnet Mask: 255.255.255.0
Result: The laptop may treat more addresses as “local,” causing routing/ARP issues and weird connectivity problems.
Fix: Set the correct subnet mask (usually via DHCP).
If either is wrong, you can get:
Subnet masks show up often in “why can’t this device communicate?” questions. Practice exams help make it automatic.