l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:01

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] question about ip addresses and netmasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] question about ip addresses and netmasks

  • Subject: Re: [vox-tech] question about ip addresses and netmasks
  • From: Dale Bewley <dale@bMAPSewley.net>
  • Date: Tue, 20 Feb 2001 14:08:46 -0800
  • References: 20010220134714.A32719@dirac.org

I have a hard time explaining it to other people, but
you have to picture the binary number in your head and after a while you
memorize most of these.

To convert /30 to the mask I say to myself: 
32-30=2 bits
2 bits can create a maximum of 4 in decimal
so the netmask is 

Once you do enough of that, you quickly see 252 and think /30.
Or see 240 and think /28. (256-240=16 which is 2^4 and 32-4=28) would be /23 meaning 23 bits in the netmask.
If you subtract 254 from 256 you'll get 2. That tells you you have two
/24 subnetworks. 

It gets more complicated when you are peeling off a /29 or something in
the middle of the range from 0-255. You have to make sure you network
starts on a boundary divisible by 8. (32-29=3bits = max of 8)

i.e. For the address what is the broadcast address and what
is the subnet?
It's and The next subnet starts at .80 so the
broadcast is one below that.

Sorry if that wasn't much help.
If anyone has a easier way to explain that, please do.
I probably should have just kept my mouth shut. :)

On Tue, 20 Feb 2001, Peter Jay Salzman wrote:
> is there a way to see, without converting numbers to binary and performing a
> a bitwise and, that:
> means all addresses from through  is there
> short cut for this?
> something like "255 means that quad is firm, 254 means you can go one
> higher, and 0 means the quad can be anything"?  i know that's "loose talk",
> but is it generally true?
> pete
> -- 
> "It's better to be safe than assimilated."                   p@dirac.org
>                       -- Chakotay                            www.dirac.org/p

Dale Bewley - Bewley Internet Solutions Inc. http://bewley.net/

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.