A subnet mask is a number that helps define the size of a network and determines which part of an IP address identifies the network and which part identifies the host (the individual device).
Key Points:
- Format: Typically written in the same format as an IP address (e.g.,
255.255.255.0). - Function: It "masks" the IP address to show which bits are used for the network and which are used for hosts.
- Binary Representation: In binary, a subnet mask consists of a series of
1s followed by0s. For example,255.255.255.0in binary is11111111.11111111.11111111.00000000. The1s represent the network part, and the0s represent the host part.
Example:
- For the IP address
192.168.1.10with a subnet mask of255.255.255.0:- Network part:
192.168.1 - Host part:
10
- Network part:
This means all devices with IPs starting with 192.168.1 are in the same network.
If you have more questions or need further clarification, let me know!
