Home > OS >  How to distinguish the IP address of the network, subnet, (takes up the host before several) host nu
How to distinguish the IP address of the network, subnet, (takes up the host before several) host nu

Time:09-17

Have a class C address is: 192.9.200.13
The default subnet mask is: 255.255.255.0

It network number and host number can be obtained as follows:

(1) the IP address 192.9.200.13
Converted to binary 11000000000010011100100000001101
(2) the subnet mask 255.255.255.0
Converted to binary 11111111111111111111111100000000
(3) the two binary number to do the bitwise and (& amp;) Results after operation is the network part

=192. 9. 200. 0
The network number for 192.9.200.0

(4) to take the subnet mask to the IP address the bitwise and (& amp;) After the result is the main part

=0. 13
0. 0.The host number 13 (or 0.0.0.13),
  • Related