Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Give you the IP address so you can work out the mask (dotted decimal), subnet address, broadcast address.

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Give you the IP address so you can work out the mask (dotted decimal), subnet address, broadcast address. If you want to calculate the mask, subnet address and broadcast address of the IP address, you must first remember a few points. 1:IP addresses (A B C III) are classful addresses. The class An address mask is 8 bits, the class B address is 16 bits and the class C address is 24 bits. 2: remember the conversion between binary and decimal (128, 64, 32, 16, 8, 4, 2, 1). 3: know what the number of digits of the A B C class address is. Class A 0-126amp, class B 128-191Universe C, 192-223. Remember, don't be wrong. Let's start with binary operations, for example: what is the binary of 192? In fact, you can pick it up by remembering the binary and decimal conversion I mentioned above (128, 64, 32, 16, 8, 4, 2, 1). Let's see if 192 can be reduced by 128? It can be minus 128. if it can't be subtracted, it's 0192-12864. We're looking at whether the number after 128can be subtracted by 64, it can be subtracted by 1, it can't be subtracted, it's zero, and so on. Binary numbers represent only 1 and 0. So the binary of 192is: 11000000 (binary) is binary (0255). You just have to remember the numbers I mentioned above and then operate it is actually very simple, not as troublesome as our teachers taught us in school. Let's talk about the IP address to calculate the mask, subnet address, broadcast address: for example: 131.108.45.148Unibank 17 represents the mask address, let's look at the IP address at the beginning of 131that belongs to class B address (128191) 16 bits, that is, let's figure out that 45 of 131.108.45.148 is the mask, subnet address and broadcast address we are looking for. First of all, let's take a look at the 16-bit class B address, but now it's 17 bits. We need to borrow a Class B address 11111111.11111111.000000.000 16 bits, and when we borrow it, it becomes 11111111.11111111.10000000.00000000, which is the binary of the current mask. We just need to convert the different set of binary into decimal to get the mask. If we look at the different group of 10000000, you can think of these eight numbers as 1286432168421, and you will find that as long as the number that becomes one corresponds to the number that I said, the sum of the numbers I said is our mask 10000000. That's 128128.0. then our mask is 255.255.128.0Note: just add the numbers from 0 to 1. Make sure you remember the numbers I'm talking about, and you imagine that the IP address is 32-bit binary, divided into four segments, eight digits in each segment, and the numbers I'm talking about are all eight digits. As long as we compare each other, we can quickly figure out that we are talking about subnet addresses and broadcast addresses. Class B is 16 bits, and now we are / 17 bits, which means we want to borrow 1 bit from Class B addresses. Remember that the borrowed bits are to the power of 2. We are 2 to the power of 2. We all know that the number of digits in each segment of an IP address is 0-255. how much is 2 times equal to 256? Is it the 128 of 2128256 that we need to use to help us with molecular network addresses and broadcast addresses? First of all, 131.108.0.0 (subnet address)-131.108.127.255 (broadcast address) 131.108.128.0 (subnet address)-131.108.256.255 (broadcast address) this is the subnet address and broadcast address we calculated. Then let's see that our IP is 138.108.128.48, that is to say, our IP is between 138.108.0.0 and 138.108.127.255. So the answer is the subnet address: 138.108.0.0 broadcast address: 138.108.127.255. The address among them is our host address. This is my own understanding of the wrong place, please put forward, thank you! ~!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report