noun
A subnet mask is a number that determines how an IP address is divided into a network and host portion. It works by using binary patterns to separate the network identifier from the device identifier within an IP address.
Subnet masks are essential for routing traffic efficiently. A typical subnet mask for a home network is 255.255.255.0, which means the first three octets of the IP address identify the network, and the last identifies the device.
For users, a subnet mask ensures that devices on the same network can communicate while preventing unauthorized access. For example, if your router uses 192.168.1.1 with a subnet mask of 255.255.255.0, all devices with IP addresses from 192.168.1.1 to 192.168.1.254 can communicate directly.
When setting up a home Wi-Fi network, you typically configure the subnet mask to 255.255.255.0 to ensure all devices can connect.
In other languages
See also: IP address · Router