l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2002 Mar 10 14:57

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] netmask question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] netmask question



On Sun, 10 Mar 2002, Peter Jay Salzman wrote:

> how would someone write a range of IP addresses
> 
> 61.220.0.0 - 61.227.255.255

00111101.11011100.00000000.00000000
00111101.11100011.11111111.11111111

If you want to write it in netmask form, you have to be able to divide it
into two parts cleanly... the first part has to have identical bits, and
the second part has to be all zeroes in the lower address and all ones in
the higher end of the address range.

Hmm... adding a dividing point at a power of two rollover (the first bit
that is different)...

00111101.11011100.00000000.00000000
00111101.11011111.11111111.11111111

00111101.11100000.00000000.00000000
00111101.11100011.11111111.11111111

it fits into two ranges, characterized by the first 13 bits, or

61.220.0.0/255.252.0.0
61.224.0.0/255.252.0.0

Other arbitrary starting and ending points might not work out as two
ranges... might have to split at more than one power of two to get the
"same network bits, host bits roll from all zeroes to all ones" pattern.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------



_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
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:
Sunset Systems
Who graciously hosts our website & mailing lists!