In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Several common types of public network ip addresses:
Class An ip address range is: 0.0.0.0-127.255.255.255 can have 16777214-2 hosts, suitable for large networks
Class B ip address range: 128.0.0.0-191.255.255.255 can have 65534-2 hosts, suitable for medium-sized networks
Class C ip address range is: 192.0.0.0-223.255.255.255 can have 254-2 hosts, suitable for small networks
Several common types of private ip addresses
Class An IP address range is: 10.0.0.0-10.255.255.255
Class B ip address range is: 172.16.0.0-172.31.255.255
Class C ip address range is: 192.168.0.0-192.168.255.255
Subnet mask
1. The so-called 24-bit subnet mask refers to the number of 1 and bit subnet masks after the subnet mask is converted into binary.
For example: 192.168.1.100 Compact 24
After the subnet mask is converted to this form, xxxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx has 24 1s and the rest are all zeros.
That is, 11111111.111111111111111111.00000000, and then simplified to 255.255.255.0.
two。 Network number, host number
As above: 255.255.255.0 after the conversion to binary, there are as many as 1, the network number is as many as 0, and the host number is as many as.
For example:
255.255.255.224011111111.11111111.11111111.11100000
Host number is 5, network number is 27
3. Calculate the number of hosts that can be accommodated by subnet mask
For example: 225.255.244.0 = > 1111111.11111111.11111000.00000000
Therefore, the number of hosts owned by the subnet mask is: 2 ^ 11-2 million 2046 (see how many zeros are behind)
If there are m zeros, the number of hosts that can be owned is: 2 ^ m-2
Network address
For example: ip is 192.168.1.100
192.168.1.100 11000000.10100.00000001.01100100
255.255.255.09111111111111111111111111.00000000
After performing the logical and operation on the right side of the two expressions: 11000000.10101000.00000001.000000192.168.1.0
So the identifier of the network segment is 192.168.1.0
Broadcast address:
Calculate the broadcast address: calculate the broadcast address using the network address:
For example, ip is 192.168.1.101 and subnet mask is 255.255.255.0
11000000.10101000.00000001.01100101
11111111.111111111111111111.00000000 thus the host number is 8 and the network number is 24
After and operation:
11000000.10101000.00000001.00000000
Then change the 8 host numbers after the operation to 1, and get
11000000.10101000.00000001.11111111
That is, the broadcast address is 192.168.1.255
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.