IP is something that everyone is very familiar with! But there must be something you do not know, yes, I am the popular science you do not know the Linux Kang brother. In our OSI seven layer model in the network layer will break into the IP header, record our IP address, then IP exactly how many bits? How big is the range?
0.0.0.0-255.255.255.255--This is the range of IP addresses
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/98/wKioL1gYBUnCkPnAAAFevxd4f2M703.png-wh_500x0-wm_3 -wmp_4-s_4149928612.png "title=" Qq20161101105051.png "alt=" Wkiol1gybunckpnaaafevxd4f2m703.png-wh_50 "/>
Effective IP Oh!
We look at the IP in Class a the first network segment range is between 1-126, if two or more hosts the first network segment is the same network segment of the host, if the first network segment IP is not the same as the cross-network segment IP.
Class B is the first two numbers representing the same network segment, and the latter two represent different hosts within the network segment
Class C is the first three numbers for the same network segment, and the latter number represents the different hosts within the network segment
Attention:
Private IP is an IP address that everyone can access for use in the intranet.
Let's explain what a subnet mask is, why put this concept with an IP address? Remember that because the subnet mask and IP are present together .
The standard subnet mask for Class A is 255.0.0.0
The standard subnet mask for Class B is 255.255.0.0
The standard subnet mask for Class C is 255.255.255.0
Join IP is: 10.8.11.112
Network address (first address): 10.0.0.0
Broadcast address (last address): 10.255.255.255
IP belongs to which network segment and the number of hosts in the network segment is determined by the subnet mask, that is to say that IP is a class B, but the subnet mask is assigned to the Class C standard Subnet mask, then the network segment conversion method in accordance with Class C calculation.
This article is from the "Brother Hong Linux World" blog, so be sure to keep this source http://zhengkangkang.blog.51cto.com/12015643/1868007
Network management IP address and subnet mask Linux detailed