Book now with code EOY2025
pham0329 wrote: » 172.31.x.x = Class B address and a /21 is 255.255.248.0, which means an increment of 8 So, you here are your ranges ...... 172.31.200.0 - 172.31.207.255 172.31.208.0 - 172.31.215.255 172.31.216.0 - 172.31.223.255 172.31.224.0 - 172.31.231.255 172.31.223.255 is the broadcast address of the 172.31.216.0/21 subnet, so the last usable ip in the range is 172.31.223.254
pham0329 wrote: » err, I'm not sure what Chirs Bryant's method is, but can't be all binaries, can it? Does he not talk about increments/block size, and network range? If you're only doing binaries, you may be hard press for time when taking the exam.
darkladdie wrote: » Something here does not make sense to me. Maybe because I am dinosaur. Where does the assumption that the last IP address in a subnet range has to be the broadcast IP address? (This is where I think being dinosaur is showing my age) I remember the days where you had to manually set the broadcast IP address in IP configurations. Based on the following information mentioned earlier in this thread: Network Address: 172.31.216.0 Broadcast Address: 172.31.223.225 Valid Host Range: 172.31.216.1 - 172.31.223.254 The last valid IP address should be 172.31.223.255 unless the broadcast address was a typo.
JockVSJock wrote: » Ok, working again with subnettingquestions.com and also using the subnetting calculator from this website and I'm not sure how they are getting this answer of: Network Address: 172.31.216.0 Broadcast Address: 172.31.223.225 Valid Host Range: 172.31.216.1 - 172.31.223.254 What is the last valid host on the subnetwork IP Address: 172.31.216.0/21 Convert both to binary: 10101100.00011111.11011000.00000000 11111111.11111111.11111000.00000000 I understand how to get the network address, for the IP Address on the third octet, add together 128+64+16+8 to get the network address: 172.31.216.0 As for getting the broadcast address, I'm not sure, and I think I'm in the dark: EDIT: Ok, I worked backwards into 172.31.223.225. I did this to get the broadcast address: Add the third octet 216+4+2+1 = 223. AND, for the fourth octet, it has to be 255, since it is broadcast. Thus an IP address of 172.31.223.255. I think I'm on the right path here, if anyone can offer any suggestions, I'm all ears. thanks
What is the last valid host on the subnetwork IP Address: 172.31.216.0/21 Convert both to binary: 10101100.00011111.11011000.00000000 = 172.31.216.0 11111111.11111111.11111000.00000000 = 255.255.248.0 (or /21) Now, all those 0's at the end of the mask, you can play with those for host bits. i.e.: 10101100.00011111.11011][000.00000000 11111111.11111111.11111][000.00000000 [NOTE: The demarcation is based upon the subnet mask] Now, in this case, we see that all of the last 11 zeroes are host bits. Note: 32-21 = 11 2^11 = 2048. If you can count by 2048, then fantastic for you, but look at the real rub here: There are 3 bits to play with there in the INTERESTING octet, and 2^3 = 8 (block size of [IMG]https://us.v-cdn.net/6030959/uploads/images/smilies/icon_cool.gif[/IMG] To figure out the BROADCAST address, we turn ALL of those trailing HOST bits into ones. Example: 10101100.00011111.11011][000.00000000 [see the separation] 10101100.00011111.11011][111.11111111 [this is the broadcast address, with all one's there] so, 172.31.223.255 is the broadcast address. You automatically know to subtract one from the broadcast address, so 172.31.223.254 is the last valid host. This example might not be sufficient, as the subnet mask bit lines up with your network bits. ====================================================================== Let me try a more STARK example, to help drive the concept home. What is the last valid host on the subnetwork: 172.31.216.0/30 Convert both to binary: 10101100.00011111.11011000.00000000 = 172.31.216.0 11111111.11111111.11111111.11111100 = 255.255.255.252 (or /30) Now, let's see where the separation occurs: 10101100.00011111.11011000.000000][00 11111111.11111111.11111111.111111][00 See, this mask gives you only TWO bits to play with (32-30 = 2) Note: 2^2 = 4 For reference, 32-21 = 11 (see the earlier example) Anyway, let's see what we have to work with, in this example: 10101100.00011111.11011000.000000][00 = 172.31.216.0 (network) 10101100.00011111.11011000.000000][11 = 172.31.216.3 (broadcast address) So, subtract 1 from the broadcast address, and 172.31.216.2 is the last valid host on the network. =========================================================================== Ok, just for good measure, one more to look at: What is the last valid host on the subnetwork: 172.31.216.0/23 Convert both to binary: 10101100.00011111.11011000.00000000 = 172.31.216.0 11111111.11111111.11111110.00000000 = 255.255.254.0 (or /23) Now, let's see where the separation occurs: 10101100.00011111.1101100][0.00000000 11111111.11111111.1111111][0.00000000 In this example, you get 9 bits to play with (32-23 = 9) Note: 2^9 = 512 (or, 2 x 256). This may seem a bit worthless, but consider that really, you're only interested in the THIRD octet here. which really has only one bit to play wth (if you can count by 512 bit easily, more power to you, but consider this. 2^1 = 2) Anyway, let's write this out: 10101100.00011111.1101100][0.00000000 = 172.31.216.0 (network address) 10101100.00011111.1101100][1.11111111 = 172.31.217.255 (broadcast address) subtract one, to get the last valid host: 172.31.217.254 is the last valid host address. ========================================================================================= Now, what some are telling you is QUICKER is to just count the BLOCK SIZE. In order to count with the block sizes, you only have to remember a few things: 1. This sequence: 128 - 192 - 224 - 240 - 248 - 252 - 254 - 255 2. How to find the interesting octet. Anyway, let's try this last problem, using BLOCK sizes: What is the last valid host on the subnetwork: 172.31.216.0/23 Well, the mask for a /23 is 255.255.254.0 256-254 = 2 (I have my block size, which is 2.0) To find the NEXT network address, I add 2.0 to the current network address 172.031.216.000 000.000.002.000 172.031.218.000 To get the broadcast address, I subtract one from the next network: 172.031.217.255 To get the last host, I subtract one from the broadcast address: 172.031.217.254 ====================================================== Anyway, let's try a NEW problem, using the block sizes: What is the last valid host on the subnetwork: 172.31.216.0/28 The mask of a /28 is 255.255.255.240 (see below for a tip on counting this out quickly.) Now, to get the block size: 256 - 240 = 16 (block size) 172.31.216.0 > first network 172.31.216.16 > next network 172.31.216.32 > next network 172.31.216.48 > next network .... and so on Anyway, since the next network was .16, then I need to subtract one, to get the broadcast 172.31.216.15 = broadcast 172.31.216.14 = last host JUST to double-check on the binary method (not that it's necessary, but just for completeness!) Convert both to binary: 10101100.00011111.11011000.00000000 = 172.31.216.0 11111111.11111111.11111111.11110000 = 255.255.255.240 (or /2[IMG]https://us.v-cdn.net/6030959/uploads/images/smilies/icon_cool.gif[/IMG] (NOTE: 32-28 = 4, and we have 4 bits to play with. Notice that 2^4 = 16) Now, let's see where the separation occurs: 10101100.00011111.11011000.0000][0000 11111111.11111111.11111111.1111][0000 OK, and where's that broadcast address? 10101100.00011111.11011000.0000][0000 = 172.31.216.0 (network address) 10101100.00011111.11011000.0000][1111 = 172.31.216.15 (broadcast address) ================================================================== ============================ A tip with CIDR notation /8 /16 /24 are all well known 255.0.0.0 255.255.0.0 255.255.255.0 After that, you have this sequence of numbers to know: 128, 192, 224, 240, 248, 252, 254, 255 Doublecheck, by writing out all of the CIDR's from /8 through /32 So, this means these subnet masks are actually SUPER EASY to figure out. Then, just subtract the farthest right non-zero octet from 256, and you have your block size. Once you have your block sizes, you can count up networks. to get a broadcast, it's one minus from the next network The usable range is always from the first host to the last host (everything in-between the network and broadcast). So, for how I figured out the /28? Well, the /28 is based on the well-known /24 255.255.255.0 = /24 Now, I know that to get to 28, I have to go 25, 26, 27, 28 Now, I then just recall: 128, 192, 224, 240 Boom, I'm there, I just counted four up, and I have the subnet mask already, which is: 255.255.255.240 Now that I have the mask, block sizes and everything else are easy. ======================= Note: the block size will be the 2 power of the number of non-zero bits in the farthest right non-zero octet. If you're counting up blocks in the third octet, be careful to use X.0, versus a .X (if you were in the fourth octet, for a block size) =================
JockVSJock wrote: » I will probably have to read thru this thread a few times to have this block method sink in. I'm still confused by it. Lammel's book uses this and I never could get subnetting down, and also confused by his CCNA book too. I have Bryant's CCNA home videos and at least I can follow his subnetting examples and sometimes get the answers correct. I'm still missing a few from subnetting.com and will start to post my questions here.
pham0329 wrote: » Wasn't a typo. 172.31.223.255 is the broadcast address. The broadcast address is the last ip in the network range....or the address in which all bits in the host portion is set to 1
What is the last valid host on the subnetwork IP Address: 172.31.216.0/21 Convert both to binary: 10101100.00011111.11011000.00000000 11111111.11111111.11111000.00000000
advanex1 wrote: » Jock - Chris Bryant does use ranges - you didn't watch the ICND1 videos far enough. He gives SPECIFIC examples on how to find the valid host ranges, broadcasts and networks, and usable subnets with and without "ip subnet-zero".You need to go back and revisit the video's, he does a great job of teaching it.
advanex1 wrote: » CCENT Disk 2 - Video 3, he specifically talks about valid host ranges, etc. etc. (note, this is for his Train Signal courses)
Use code EOY2025 to receive $250 off your 2025 certification boot camp!