is 192.168.10.100/25 and 192.168.10.200/25 in the same domain

Source: Internet
Author: User

A question for brother Bird

192.168.10.100/25, IP is class c,net_id accounted for 24, the title of 25, that is, host_id lend 1 to net_id

192 |     168 |      10 | 100

11000000 10100000 00001010 01100100

The following begins the calculation of network and Boardcast

11000000 10100000 0000101 0|0 | 1100100

----------------------------------------|--|-------------

The IP is divided into 3 segments, the 1th and 2nd segments are net_id (25 bits), and the 3rd segment (7 bits) is host_id

The Compute network turns host_id (7-bit) to 0, and the end result is

11000000 10100000 00001010 | 0000000

----------------------------------------|--|-------------

And then turn it into 10 and the result is

192.168.10.0

The calculation boardcast turns the host_id all into 1, and the final result is

11000000 10100000 0000101 0|0 | 1111111

----------------------------------------|--|-------------

And then turn it into 10 and the result is

192.168.10.127

The network and boardcast of 192.168.10.200 computing

192 |     168 |      10 | 200

11000000 10100000 00001010 11001000

25-bit net vs. 7-bit host

11000000 10100000 00001010 1 | 1001000

Change the 7-bit host to 0000000

11000000 10100000 00001010 1 | 0000000

Turn 10 binary

Network = 192.168.10.128

Change the 7-bit host to 1111111

11000000 10100000 00001010 1 | 1111111

Boardcast = 192.168.10.255

End of Topic

is 192.168.10.100/25 and 192.168.10.200/25 in the same domain

Contact Us

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.