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