Networking-Forums.com

Education => Homework Help => Topic started by: deanwebb on February 16, 2015, 09:02:56 PM

Title: How do you remember how many hosts go with a subnet mask?
Post by: deanwebb on February 16, 2015, 09:02:56 PM
Like the title says, how do you do it?

I'll hold up 8 fingers and then start halving... 128, 64, 32, 16, 8, 4, 2... and then I subtract two from all but the last, since I learned about the /31 a year ago.
Title: Re: How do you remember how many hosts go with a subnet mask?
Post by: icecream-guy on February 17, 2015, 07:42:41 AM
256 subtraction method,    256 - the number in the mask

so with a 255.255.255.240

256-240 = 16,  then subtract 2 for the network and broadcast  16-2 = 14,  14 hosts is the correct answer,

this is only efficient for /24 networks or greater.

for /16 through /23  multiply by 256

255.255.240.0

256-240 = 16,  16x256 = 4096  - network and broadcast  4096-2 = 4094

for lager networks /9 - /15 you could always multiple by 256  twice.
Title: Re: How do you remember how many hosts go with a subnet mask?
Post by: deanwebb on February 17, 2015, 08:30:10 AM
Say, I like that 256 method. Nice and clean. Thanks!
Title: Re: How do you remember how many hosts go with a subnet mask?
Post by: Ironman on February 23, 2015, 03:48:31 PM
Nice! I haven't heard of that method, thanks!
Title: Re: How do you remember how many hosts go with a subnet mask?
Post by: icecream-guy on February 24, 2015, 07:51:28 AM
this also helps with subnetting,

255.255.255.192

256-192 =64

so your multiplier is 64,

subnets are .0, .64, .128, .192
Title: Re: How do you remember how many hosts go with a subnet mask?
Post by: deanwebb on February 24, 2015, 08:20:53 AM
I ought to write that up so that I remember it better.

Mad rep point to Mr. Ristau.
Title: Re: How do you remember how many hosts go with a subnet mask?
Post by: dlots on February 25, 2015, 10:34:13 AM
same as ristau5741