📖 What is Subnet Mask?
A subnet mask is a 32-bit number used to divide an IP address into network and host portions. It determines the network size and the maximum number of usable host addresses within that network. The mask identifies which bits represent the network and which represent the host.
"Master subnetting. Exam questions often require calculating usable host addresses, network addresses, and broadcast addresses given an IP address and subnet mask. Understand CIDR notation and its relationship to subnet masks. Pay attention to reserved addresses."
📚 Certification: CompTIA Network+ Certification Exam (N10-009)
🔑 What are the Key Concepts of Subnet Mask?
- ▸ Subnet masks use contiguous 1s for the network portion and 0s for the host portion, defining network boundaries.
- ▸ The number of host bits determines the maximum number of usable hosts (2^n - 2, accounting for network and broadcast addresses).
- ▸ CIDR notation (e.g., /24) is a shorthand for representing subnet masks, indicating the number of network bits.
- ▸ Understanding default subnet masks for common network classes (A, B, C) is crucial for quick identification.
- ▸ Subnetting allows dividing a single network into smaller, more manageable networks, improving security and performance.
🎯 How does Subnet Mask appear on the N10-009 Exam?
You may be asked to calculate the number of usable host addresses given an IP address and its corresponding subnet mask, requiring binary-to-decimal conversion.
A scenario might describe a network design requirement for a specific number of hosts; you'll need to select the appropriate subnet mask to accommodate them.
Expect questions about identifying the network address, broadcast address, and valid host range given an IP address and subnet mask.
❓ Frequently Asked Questions
How does changing the subnet mask affect the network?
Increasing the subnet mask (e.g., from /24 to /25) reduces the number of usable host addresses but increases the number of available networks, and vice versa.
What's the difference between a subnet mask and a default gateway?
A subnet mask defines the network itself, while the default gateway is the IP address of the router that allows communication *outside* of that network. They serve different purposes.
Why are the first and last addresses in a subnet unusable?
The first address is the network address, identifying the subnet itself. The last address is the broadcast address, used to send data to all hosts on the subnet. They cannot be assigned to individual devices.