# Two Methods for Calculating subnets

Source: Internet
Author: User

Question: How does 178.69.35.10/17 calculate its subnet range?

Method 1:

1. Starting from the third section "35" because 16 <17 <24.
2. Convert "35" to binary "00100011 ".
3. 24-17 = 7 ("00100011")
4. Fill in all seven digits as "0" and "1", and then add the decimal values to get the range value.
5. "00000000"=0
6. "01111111"=0 + 64 + 32 + 16 + 8 + 4 + 2 + 1=127
7. Therefore, the subnet range is 178.69.0.0-178.69.127.255.

Method 2:

1. 16 <17 <24
2. Compared with the standard class B "16" subnet, this subnet occupies more than the host space "1"
3. From left to right, the binary valid value of this "1" bit is"10000000 "= 128(This example occupies exactly one digit. If it occupies two digits, the valid value of the binary value on the two digits is"01000000 "= 64, And so on)
4. The value ranges from left to right and starts from 0,
5. Obtain the subnet range of this question:178.69.0.0-178.69.127.255

If the title is:178.69.125.10/22The subnet range is:

1. 22-16 = 6
2. 6. The valid value of the binary from left to right is "4"
3. Use 125/4 =124+ 1,
4. The obtained range is:178.69.124.0-178.69.127.255(4 in this example)
Related Keywords:

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

## A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

• #### Sales Support

1 on 1 presale consultation

• #### After-Sales Support

24/7 Technical Support 6 Free Tickets per Quarter Faster Response

• Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.