The subnet mask divides the IP address into a network address and a host address. The steps to fill in are as follows: Determine the subnet size and convert it into a bit mask. Converts a binary bitmask to dotted decimal. Example: Create a subnet (/27) with 30 hosts, using subnet mask 255.255.255.192.
How to fill in the subnet mask?
A subnet mask is a 32-bit binary number used to divide an IP address into a network address and a host address. The following steps explain how to fill in the subnet mask:
1. Determine the network size
Determine the size of the subnet to be created. Typically the following subnet sizes are used:
2. Convert the subnet size to a bitmask
Convert the subnet size to a bitmask as follows:
3. Convert binary mask to dotted decimal
Convert binary mask to dotted decimal, method As follows:
Example:
To create a subnet with 30 hosts (/ 27), please do the following:
Therefore, the /27 subnet mask is 255.255.255.192.
The above is the detailed content of How to fill in the subnet mask. For more information, please follow other related articles on the PHP Chinese website!