As long as you remember a simple number, you can easily determine the host bit, network bit, broadcast address and available IP address range of the network segment even when faced with a very complex IP network segment subnet mask division. This number is 256. Basic knowledge reviewIP addresses are divided into two types: IPv4 and IPv6, of which IPv4 is currently the most common type. An IPv4 address consists of a 32-bit binary number, usually expressed as four groups of decimal numbers. The division of an IP address depends on the subnet mask, which is used to determine the boundary between the network number and the host number.
Case DemonstrationLet's do a few tests together, such as this IP address: First, we need to find the part of the mask that is neither 255 nor 0. For example, here we use 248 as an example. Next, we subtract this number from 256 (256-248), and the result is 8. This means that we can start from 0 and increase by 8 to determine the range of IP addresses. We can use this method to calculate the valid IP address values before and after it. In this way, we can easily know the range of the IP address! In the above example, 37 is exactly between 32-40. Therefore, we can easily get:
Let’s do another question! By subtracting 192 from 256 we get 64. Since 55 is exactly in the range of 0 to 64, we can understand it like this:
|
<<: Network Analysis in Rust: Capturing and Analyzing Network Traffic with Pcap and Pnet
This afternoon, Huawei held a new product launch ...
[51CTO.com original article] On December 22, 2016...
When it comes to 5G networks, the first perceptio...
Since the three major operators launched unlimite...
There is a legend circulating on the Internet abo...
10gbiz's promotion is still going on, with 40...
On November 15, 2017, Inspur Cisco Network will h...
[[412152]] 1 What is WebSocket? WebSocket was bor...
According to the latest report released by the In...
Recently, my country promulgated the newly revise...
There is no discount information, so continue tes...
According to a research report released by the Gl...
For cross-border e-commerce sellers in 2019, the ...
V5.NET has announced the news of new cloud server...
On June 6, 2019, the Ministry of Industry and Inf...