Compare cert salaries and plan your next career move
SurferdudeHB wrote: » is there an efficient way to calculate multiples of 16? Besides writing them down.
hiddenknight821 wrote: » I need to know why you want to bother with it. Okay, I lied that 256 is not the "magic" number everyone was talking about, but my trick still works. You need to know what a "magic" number is. In the subnet mask, it's always the first zero after all one in binary. For example, 11111111.11111111.11110000.00000000 which is /20. Now you see three octets that are either filled with all ones or zeros. Ignore those octets and focus on the one that has both ones AND zeros, which is the third octet in my example. Like I said, find the first zero, and that would be your magic number. Remember to stay focus on that octet alone. there are 4 1's bits, which is the network portion and there are 4 0's bits that are host portion. There are 16 subnets. Using the trick I shared with you in my previous post, you should have 16 addresses and 14 of them are host. Aha, there's the "magic" number you are looking for. It's 16. Now, 16 is your magic number. Now let's give ourselves a problem. 172.17.149.115 /20 I'm using the same subnet mask from above. Now, we want to find the host range it belongs to. The problem here is that you are not good at 16 time table, so we would want find the fastest way to find the host range. Well division and rounding is now your best friend, but multiplication should still be in consideration. One way you can solve it quickly is to divide THE NUMBER in the third octet (remember, I told you to focus on the octet where the increment happens) by the "magic" number. You do not have to bother with the remainder. 149 / 16 = 9.3125. So now, this is where multiplication becomes your best friend again. 16 times 9 has just gotten a whole lot easier, and the answer is 144. So, the host range should be.... 172.17.144.1 to 172.17.159.254 You should be smart enough to also perform 16 * 10 calculation to get the end range. Don't forget to subtract by two. 160 will take you to the next subnet address and you cannot use the broadcast address, 172.16.159.255)
Compare salaries for top cybersecurity certifications. Free download for TechExams community.