How To Calculate Number Of Hosts?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To calculate the number of hosts for a given IP address, you need to use the subnet mask to determine the size of the network. To do this, subtract the number of 1s in the subnet mask from 32. This is the number of bits available for host addresses. Then use the formula 2^n, where n is the number of bits available for host addresses, to calculate the number of hosts. For example, if the subnet mask was 255.255.255.240, there would be four 1s in the mask, leaving 28 bits available for hosts. Using the formula, 2^28 = 268,435,456, which is the total number of hosts.