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
[[439196]] This article is reprinted from the WeC...
The coronavirus has not slowed down China’s stead...
RAKsmart is offering flash sales for VPS and clou...
[[354214]] Organizations implementing long-term r...
10 days ago, pureLifi raised $18 million in Serie...
Not surprisingly, the digital world is gradually ...
Today, the use and growth of mobile technology ha...
[[437233]] Recently, the hottest word is naturall...
Zigbee has a wide range of applications and can o...
DMIT.io is a foreign hosting company founded in 2...
Each new Wi-Fi version brings new features and it...
This afternoon, Huawei's new product launch c...
Recently, both domestic and foreign operators hav...