Compare cert salaries and plan your next career move
saied45 wrote: » Subnet Mask **** Sheet
saied45 wrote: » ah okay. i just started studying for my ccna and havent gotten to subnetting( i hear its dreadful tho) but good luck
Technology1 wrote: » It's considered dreadful for many because simple tips are never discussed such as the 8 special numbers that keep showing up in any subnet mask available. I know most of it, but the questions just posted get somewhat confusing at times.An absolute must to memorize the 8 special numbers of the subnet mask as they are the only numbers that will ever be used in an IPv4 subnet mask. 128, 192, 224, 240, 248, 252, 254, 255
veritas_libertas wrote: » Interesting, would you like to elaborate?
IRONMONKUS wrote: » I'm no expert, but here's how I would do it. Given: 172.25.0.0/27 You know this is a class B address. Default subnet mask: 255.255.0.0 Binary: 11111111.11111111.00000000.00000000 You are given the subnet of /27 or 255.255.255.224 Binary: 11111111.11111111.11111111.11100000 You borrowed 11 bits from the host portion to give you /27 from the default subnet of /16 We know that 1s equal the subnet (network) and the 0s equal the hosts. Compare the default subnet to the new subnet. 11111111.11111111.00000000.00000000 11111111.11111111.11111111.11100000 Count the extra 1s and it equals 11. So, 2^11 = 2048 subnets available. Count up the remaining 0s and it equals 5. So, 2^5-2 = 30 hosts per subnet. You minus 2 when calculating hosts, because you cannot use the network or broadcast address for each network. Check out this thread as well Subnetting made easy they have some really good information there.
Technology1 wrote: » An absolute must to memorize the 8 special numbers of the subnet mask as they are the only numbers that will ever be used in an IPv4 subnet mask. 128, 192, 224, 240, 248, 252, 254, 255
IRONMONKUS wrote: » With this in mind, I was reading Todd Lammle's book and he mentioned that when subnetting a class C address, you can only use 6 out of those 8 special numbers, because when creating a subnet, you have to have at least 2 bits available to have any hosts on that subnet. For class C: 128, 192, 224, 248, 252
saied45 wrote: » wow thanks for the help. i mainly got it except for one thing how does he figure out which octate he borrowed it from. like he said hereWe have borrowed from the last octet as the 29th bit is in the last octet. We start from zero and count up in our block size. Therefore it follows that the subnets are: sorry if it looks like im stealing the thread OP, i just really wanted to know
Technology1 wrote: » Iron, Thanks for your response. This is very interesting. Since the IP address is a Class B address and the mask octet is in octet 4, do you always have to compare the default subnet mask with the one that is given here, which is in octet 4? Thanks.
IRONMONKUS wrote: » Yes, that is how I have learned it and it makes sense to me to see it visually using binary. You reference the default subnet masks, because you need to know how many bits you have or will borrow from the hosts. In the subnetting made easy thread, they use binary math plus the default subnets 8, 16, 24, 32 to answer the questions. Check it out and see if that method works for you. The method that works for me is a cross between CBT nuggets and Train signal. I only use the train signal method when trying to find what network a certain subnet is in. It's fast and easy, no counting up from zero. I use the CBT nuggets version to do everything else.
Technology1 wrote: » Another thing I was thinking is that we know right away that the default subnet mask is 16 bits, which is 255.255.0.0 If you take /27, which is 27 bits and subtract 16 from it, you immediately get the number 11. Do you think that makes it any easier in determining the number 11 instead of going into binary to figure it out?
IRONMONKUS wrote: » Yes, that is a shortcut of getting it. I usually have to do and write things out visually for me to understand /16 - /27 = 11 Take 2^11 = 2048 subnets available
saied45 wrote: » wow thanks for the help. i mainly got it except for one thing how does he figure out which octate he borrowed it from. like he said here We have borrowed from the last octet as the 29th bit is in the last octet. We start from zero and count up in our block size. Therefore it follows that the subnets are:sorry if it looks like im stealing the thread OP, i just really wanted to know
Technology1 wrote: » Here's another one. If you don't mind going into this one, please do. Thanks.How many subnets and hosts per subnet can you get from the network 172.18.0.0 255.255.255.224? 27 bits - 16 bits is 11.
IRONMONKUS wrote: » My way: Default subnet mask: 255.255.0.0 Given subnet mask: 255.255.255.224 Binary: 11111111.11111111.00000000.00000000 11111111.11111111.11111111.11100000 1s taken from hosts = 11. 2 to the 11th (2^11) = 2048 subnets available 0s or hosts left = 5. 2^5-2 = 30 hosts per subnet subnetting made easy way: Find subnets: default: /16 given: /27 /16 - /27 = 11, 2^11 = 2048 subnets available. Find hosts: given: /27 next octet total: 32 (Knowing 8,16,24,32) /27 - 32 = 5, 2^5-2 = 30 hosts per subnet
Technology1 wrote: » One more.How many subnets and hosts per subnet can you get from the network 172.29.0.0/26?26 bits - 16 bits is 10.
Technology1 wrote: » Thank you. If we say that the mask is the default B mask of 255.255.0.0 with the IP address remaining the same at 172.18.0.0 How many subnets and hosts per subnet would there be? Very much appreciate you taking the time to go into detail with this and explaining it.
IRONMONKUS wrote: » You're welcome! By explaining it, it helps me to better understand it myself as I am new at learning this. Given: 172.18.0.0 using default mask: 255.255.0.0 Binary: 11111111.11111111.00000000.00000000 1s = 16, 2^16 = 65,536 subnets available 0s = 16, 2^16-2 = 65,534 hosts per subnet The difference is that you are not subnetting a subnet, but are using the whole Class B subnet range.
Compare salaries for top cybersecurity certifications. Free download for TechExams community.