If a unit has multiple networks distributed across different regions and there are not many hosts on each NETWORK, applying for multiple NETWORK IDs will not only waste IP addresses, in addition, the Unit will pay a large economic cost. In this case, multiple subnets can share a single website address to save IP addresses and money. Next we will introduce the process of using the subnet mask to achieve this goal.
I. Introduction
Our company has three subnets located in different locations (hereinafter referred to as Network A, Network B, and network C). The number of hosts on each network is 20, 25, and 50 respectively. My organization has applied for a website address of 202119115.
Ii. Solution Process
1. Change the subnet mask of Network A and Network B to 255255255224. The highest bit 224 is in the binary format of 11100000.
2 we use the three-digit subnet mask to separate subnets. There are eight combinations: 000, 001, 010, 011, 100, 101, 110, and 111. In addition to 000 (representing itself) and 111 (representing broadcast), there are also six combinations that provide six subnets: (the first three bytes of the IP address or 202119115)
First subnet: 001271-00111110, that is, 33-62
Second subnet: 01000001-01011110, that is, 65-94
Third subnet: 0115111-011110, 97-126
Subnet 4: 129-158
Fifth subnet: 102.161-10111110, that is, 161-190
Subnet 6: 11000001-11011110-193
Finally, we select the fifth subnet to Network A, and the sixth subnet to Network B, because each subnet supports 30 hosts, therefore, the selected subnet is sufficient to meet the needs of Network A and Network B's 20 and 25.
3. There are 50 hosts in the C network. According to the preceding splitting method, the IP address needs cannot be met. In this case, we set its subnet mask to 255255255192. Since the binary value of 192 is 11000000, it can be divided into two subnets according to the above method:
First subnet: 01000001-01111110, that is, 65-126
Second subnet: Listen 129-190
Each subnet has 62 IP addresses available. We allocated the second subnet to the C network.
At this point, multiple subnets share one URL.
Author's "Star8816 column"