Alceo wrote: » For the hosts we have 32-21 = 11 bits -> 2^11 = 2048 (-2 = 2046). Fot the subnets we have 21-16= 5 bits -> 2^5 = 32
rjon17469 wrote: » 172.29.0.0 falls into the class B category of addresses, meaning it has a /16 mask. The given subnet is a /21, meaning there are 21-16=5 bits allowed for subneting. 2^5=32 available subnets. Then there are 11 bits remaining of the 32-bit IPv4 address, which are available for hosts. 2^11=2048 possible addresses. 2 need to be removed, one for the network definition (the first address) and another for the broadcast address (the last address), giving 2046 possible host addresses.
GDaines wrote: » So had it been a 10.x.x.x class A address (/8 mask) with the same given subnet of /21 it would have calculated as follows? 21-8=13 bits for subnetting, or 2^13=8192 subnets 32-21=11 host bits so 2^11=2048 -2 (network/broadcast) = 2046 available host addresses And this time a 192.x.x.x class C address (/24) with a given subnet of /26 would be calculated as follows? 26-24=2 bits for subnetting, or 2^2=4 subnets 32-26=6 host bits so 2^6=64 -2 (network/broadcast) = 62 available host addresses
Blang008 wrote: » Thanks. Can you explain so I can better understand the concept?
Blang008 wrote: » Thanks! That helps a lot! One last question...What's the best way to reverse engineer like for the question below? Question: You are designing a subnet mask for the 172.17.0.0 network. You want 200 subnets with up to 250 hosts on each subnet. What subnet mask should you use?