How can a host in a network use the appropriate subnet mask for 450 units?
Solution: Calculate the number of host bits appropriate (set the number of main seats is N)
2 of the N-th-2 is greater than or equal to 450 gets n 9
2 of the 9 times is 512, of course, greater than 450, why do you want to reduce 2 here? Because, also want to remove a network network address (header) and a broadcast address (tail)
That subnet mask that is 11111111.11111111.11111110.00000000 into decimal is 255.255.254.0
Example: Which two available host addresses are in Subnet 192.168.15.19/28.
A. 192.168.15.17
B. 192.168.15.14
C 192.168.15.29
D. 192.168.15.16
E. 192.168.15.31
F. None of the above
ANSWER:A, C
Analytical:
The problem of CIDR is/28, a standard C-class subnet mask is/24, so for/24来 said,/28 is borrowed 4 main seat to the network bit, borrowed the network bit called subnet. Think about it, borrowed 4-bit subnet, written in binary system for 11111111. 11111111.11111111.11110000, then for the binary, the red logo 4 1 Plus how much, is 128+64+32+16=240. So/28 The subnet mask is 255.255.255.240. In fact, you want to see the last number, 255.255.255.x the first three 255 do not have to see, the focus is the last number of 240, this is the information to solve the problem.
The second step is to introduce a new number 256, with 256 minus the 240 we get in the first step, the number 16. Oh, can calculate 16 is not far from the answer, the key to solve the problem came out.
The third step, 16 is what means, so to speak, first of all, we understand that for Class C network segment, is a network segment has 255 IP address, (if not understand, you can think about how you configure your computer's IP address.) So this 16 divides 255 into every 16 piece, 0, 16, 32, 48, 64, 80, 96, 112, 128 、......、 240, what are these numbers, I can tell you, they are the network address, can know the network address is very useful, network address is used to identify a network segment. For example 192.168.15.0/28, this network segment is from 192.168.15.0 to 192.168.15.15, simplifying is from 0~15. In a network segment we want to consider is which is the network address, which is the broadcast address, then the remaining is we often have to ask for the host address. As I said earlier, 0, 16, 32, 48, 64, 80, 96, 112, 128 、......、 240, these numbers are network address, then broadcast address is what, in fact, is the last IP address of the network segment. For example, the broadcast address of the 32 network segment is the broadcast address of the 47,48 network segment is 63. Let me say one more word here. 32 network segment of the next network segment is the 48th network segment, I believe this everyone has no problem, I would like to say that the broadcast address of the network segment is actually the next network segment of the first address of the Internet address, here to give an address, I request 32 network segment of the broadcast address, In fact, 32 network segment of the next network segment of the previous address, that is, 48 minus one, that is 47. So know the network address, broadcast address will also be corresponding, for/28 divided network segment, broadcast address is: 15, 31, 47, 63, 79, 95, 111, 127 、......、 239, 255.
Here is finally able to explain the problem, 192.168.15.19/28 this address, we can know that 19 this host number is attributed to the 16 network address, and 16 of the network address range is 16~31, but 16 is the network number, 31 is the broadcast address, so the range of available hosts is 17 ~30. So the A option is correct; the B option is not in scope, excluding; the C option is correct: The D option is the network address, not optional; E option is broadcast address, not optional; So the answer is choose A, C.