Zhoushan new city passenger transport center to Zhenjiang
subnet mask cannot exist alone, it must be used together with IP address. Subnet mask has only one function, which is to divide an IP address into network address and host address
the setting of subnet mask must follow certain rules. The same as IP address, the length of subnet mask is 32 bits, and the left side is network bit, which is represented by binary number "1"; On the right is the host bit, represented by the binary number "0". The figure shows the binary comparison of IP address "192.168.1.1" and subnet mask "255.255.255.0". Among them, "1" has 24, representing the corresponding IP address. The left 24 bits are the network number“ "0" has 8, representing the corresponding IP address. The right 8 bits are the host number. In this way, the subnet mask determines which of the 32-bit binary numbers of an IP address are the network number and which are the host number. This is very important for the network using TCP / IP protocol. Only through the subnet mask can we show the relationship between the subnet of a host and other subnets and make the network work normally
the term of subnet mask is extended network prefix code, not an address, but it can determine which part of a network layer address is the network number, which part is the host number, the part of 1 represents the network number, and the part of mask 0 represents the host number. The function of subnet mask is to obtain the network address information of the host IP, which is used to distinguish different situations of host communication, The subnet mask of class a network is 255.0.0.0; 255.255.0.0 for class B network; Class C network address: 255.255.255.0
how to determine the network number or network address by subnet mask
the network address of a device is determined by the binary of IP address and the binary of subnet mask.
in other words, the network part and the host part of a network are distinguished by the subnet mask. Once the subnet mask is set, the network address and the host address are fixed
compared with the use of subnet mask to identify network address, the early use of category for network address classification has a lot of waste of address
one of the most significant characteristics of subnet is that it has subnet mask. The same as IP address, the length of subnet mask is 32 bits, also can use decimal form. For example, the binary form of subnet mask: in decimal form: 255.255.255.0<
1. The concept of subnet mask
a subnet mask is a 32-bit address, which is used to mask part of an IP address to distinguish between a network ID and a host ID, and to indicate whether the IP address is on a local area network or a remote network<
2. Determine the number of subnet masks
the number of bits used for subnet masks depends on the number of possible subnets and the number of hosts per subnet. Before defining the subnet mask, it is necessary to make clear the number of subnets and hosts originally used
the steps to define the subnet mask are as follows:
A. determine which group addresses are used by us. For example, the network number we applied for is "210.73. A.B", the network address is class C IP address, the network ID is "210.73", and the host ID is "A.B"
B. according to the number of subnets we need now and the number of subnets we may expand to in the future, we use some bits of the host to define the subnet mask. For example, we need 12 subnets now, and we may need 16 in the future. Use the first four bits of the third byte to determine the subnet mask. The first four bits are set to "1", that is, the third byte is "11110000", which is called the new binary subnet mask
C. set each bit of the corresponding initial network to "1", that is, set the first two bytes to "1", and the fourth byte to "0", then the discontinuous binary form of the subnet mask is: "11111111.11111111.11110000.00000000"
D This number is converted into discontinuous decimal form: "255.255.240.0"
this number is the subnet mask of the network
3. Labeling of IP mask
A, labeling method without subnet
for IP address without subnet, it can be written as mask with host number 0. For example, if the IP address is 210.73.140.5 and the mask is 255.255.255.0, the default mask can be used to write only the IP address
B. labeling method with subnets
when there are subnets, they must be paired. Take class C address as an example
1. The first three bytes in the IP address indicate the network number, and the last byte indicates not only the subnet number, but also the host number, and whether the two IP addresses belong to one network segment. If they belong to the same network interval, the information exchange between the two addresses does not go through the router. If it does not belong to the same network interval, that is, the subnet number is different, the information exchange between the two addresses will be carried out through the router. For example, for a host with an IP address of 210.73.140.5, its host ID is 00000101. For a host with an IP address of 210.73.140.16, its host ID is 00010000. The first three digits of the above two host IDs are all 000, indicating that the two IP addresses are in the same network area, The two hosts do not need to exchange information through the router. The host ID of 10.73.60.1 is 00000001210.73.60.252, and the host ID of 11111100. The first three digits of the two host IDs are different, which indicates that they are in different network areas and need to exchange information through the router. The subnetwork host numbers are 1 and 252 respectively
2. The function of mask is to indicate that there are subnets and several subnets, but the number of subnets can only be expressed as a range, not specific subnets. The mask does not indicate the specific subnet number, but has the mask format of subnet (for class C address)
the relationship between subnet mask and IP address
note that this is all about classed networks<
subnet mask is used to judge whether the IP addresses of any two computers belong to the same subnet
the simplest understanding is that the two computers are in the same subnet and can communicate directly if the result is the same after the and operation of their respective IP addresses and subnet masks. It's that simple
please see the following example:
one of the operation demonstrations: AA
IP address 192.168.0.1
subnet mask 255.255.255.0
and operation
Convert to binary operation:
IP address 11000000.10101000.00000000.00000001
subnet mask 11111111111.11111111.11111111.00000000
and operation
11000000.10101000.0000 0000.00000000
converted to decimal:
192.168.0.0
operation demonstration 2:
IP address 192.168.0.254
subnet mask 255.255.255.0
and operation
converted to binary:
IP address 11000000.10101000.00000000.11111111110
subnet mask 11111111.11111111.11111.0 0000000
and operation
11000000.10101000.00000000.00000000
converted to decimal:
192.168.0.0
operation demonstration 3:
IP address 192.168.0.4
subnet mask 255.255.255.0
and operation
converted to binary:
IP address 11000000.10101000.000 00000.00000100
subnet mask 11111111.11111111.11111111.11111.00000000
and operation
11000000.10101000.00000000.00000000
converted to decimal:
192.168.0
through the above and operation of three groups of computer IP address and subnet mask, we can see that the operation result is the same. All of them are 192.168.0.0
so the computer will regard these three computers as the same subnet and then communicate. This is how I plan the internal network of the proxy server used by my company
maybe you have to ask, how many IP addresses can be used with such a subnet mask? You can do that
according to the above, we can see that the IP address inside the LAN is set by ourselves (which is the same as other IP addresses of course), and this is determined by the subnet mask. Through the analysis of 255.255.255.0. It can be concluded that:
the first three IP codes can only be fixed to 192.168.0 by the assigned number, so only the last one is left, so it is obvious that the IP address can only have (2 to the power of 8-1), that is 256-1 = 255. Generally, the last one with 0 or 255 has its special function
then you may have to ask: what if my subnet mask is not 255.255.255.0? You can do the same thing. Suppose your subnet mask is 255.255.128.0
then the first two bits of IP address in your LAN must be fixed
in this way, you can see how many machines can be in the same subnet according to the following calculation
1, decimal 128 = Binary 10000000
2 IP code and subnet mask should be used for and operation
3,
IP address 11000000.10101000.1 ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ It can be seen that the IP addresses available in our intranet are:
11000000.10101000.10000000.00000000
to
11000000.10101000.11111111.11111111
5, converted to decimal:
192.168.128.0 to 192.168.255.255
6, 0 and 255 are generally used as internal special purposes of the network. Usually not used< br />
7、 So the final results are as follows: all available IP addresses of our company are:
192.168.128.1-192.168.128.254
192.168.129.1-192.168.129.254
192.168.130.1-192.168.130.254
192.168.131.1-192.168.131.254
.
192.168.139.1-192.168.139.254
192.168.140.1-192.168.140.254
192.168.141.1-19 2.168.141.254
192.168.142.1-192.168.142.254
192.168.143.1-192.168.143.254
.
192.168.254.1-192.168.254.254
192.168.255.1-192.168.255.254
8, the total is (255-128 + 1) * (254-1 + 1) = 128 * 254 = 32512
9, see if the results are correct
(1),
Set IP address as 192.168.128.1
Ping 192.168.129.233, pass the test
access http://192.168.129.233 You can display the home page
(2), set the IP address to 192.168.255.254
Ping 192.168.129.233, and pass the test
http://192.168.129.233 You can display the home page
10 Conclusion
our conclusion is correct<
now you can see how many machines you can have in your subnet
255.255.255.128
decomposition:
11111111.11111111.11111111.1000000
so the IP address of your internal network can only be
XXXXXX. Xxxxxxxxx. Xxxxxxxxx. 0
to
xxxxxxxx.xxxxxxxx.xxxxxxxx.0111111
ZTE, founded in 1985, is the world's leading provider of integrated communication solutions. ZTE's mobile phones and it software are well-known. ZTE has a complete, end-to-end proct line and integrated solutions in the communication instry< Top 10 software companies: 3. Inspur
(Inspur Group Co., Ltd.)
Inspur Group Co., Ltd., one of the top ten brands of server IT software, started in 1968. It was famous for its research and development of Chinese pager. It is a leading cloud computing and big data service provider in China. It is a high-tech enterprise mainly engaged in system and technology, software and service, and semiconctor instries< Neusoft (Neusoft Group Co., Ltd.)
Neusoft Group Co., Ltd., founded in 1991, is a large-scale offshore software outsourcing provider in China. Its embedded software serves many well-known brands in the world and is specialized in providing IT solutions and services to listed companies< Top 10 software companies: 5. China soft CS & S (China Electronic Information Instry Group Co., Ltd.)
China software and Technology Services Co., Ltd., which started in 1980, is a high-tech enterprise under China electronic information instry group, a supplier of all kinds of application software and all-round solutions, dedicated to developing system information security and other related services< NARI (NARI Technology Co., Ltd.)
Nari Technology Co., Ltd., a well-known trademark of Jiangsu Province, directly under the State Grid Corporation, provides all-round solutions and procts in the fields of smart grid / rail transit / instrial control / clean energy / Power Electronics / energy conservation and environmental protection< Top 10 software companies: 7. Hikvision
(CLP Haikang Group Co., Ltd.)
Hangzhou Hikvision Digital Technology Co., Ltd., top 10 monitoring equipment security brands, famous trademark of Zhejiang Province, listed company, leading domestic security procts and instry solutions provider< Top 10 software companies: 8. Yonyou
(yonyou Network Technology Co., Ltd.)
yonyou Network Technology Co., Ltd., one of the top 10 software companies of yonyou group, started in 1988. It is a listed company and a leading provider of enterprise management software, enterprise Internet services and enterprise financial services in the Asia Pacific region
Top 10 software companies: 9. Aerospace information aision
(Aerospace Information Co., Ltd.)
China Aerospace Science and instry group holding, Aerospace Information Co., Ltd., high-tech enterprises, state-owned listed companies with information security as the core technology< Top 10 software companies: 10. Zhe.com new Insigma
(zhe.com New Technology Co., Ltd.)
zhe.com New Technology Co., Ltd., founded in 1994, is a full-service provider of it for smart city, smart business and smart life, and a well-known information technology consulting service enterprise in China.
1. Walk about 120m from Jiangmin road of Baishazhou avenue to Jiangmin Road Station of Baishazhou Avenue
2. Take No.717, pass 5 stops, and reach Fuxing Road Station of ZhangZhidong Road (also take No.539)
3. Take No.43 loop, pass 5 stops, and reach pinghumen station of Linjiang Avenue (also take No.578)
4 Walk about 850 meters to Wuhan Yangtze River Bridge
1. Take Metro Line 11 from Shanghai west station, pass 7 stops, reach Xujiahui Station
2, walk about 190 meters, transfer to Metro Line 9
3, take Metro Line 9, pass 6 stops, and reach Qibao station
If it's not fast to fly, you can take the high-speed railway to Beijing south station first, and then take the bus. The route is as follows:
bus line: No.106, about 5.5km in total length
1. Walk about 860 meters from Beijing south station to Beijing South Station
2. Take No.106, pass 5 stops, and reach Beiwei road Dongkou station
3. Walk about 260 meters to Beijing overpass Art Center
Next to Qibao subway station
No. 3366, Caobao Road, Minhang District, Shanghai

bus line: Metro Line 8 → Metro Line 9, the whole journey is about 18.8km
1. Walk about 240m from Shanghai to people's Square Station
2. Take Metro Line 8, pass 3 stops to Lujiabang Road Station
3. Take Metro Line 9, pass 11 stops to Qibao station
4. Walk about 680m to Caobao road 3366
