home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!caen!hellgate.utah.edu!cc.usu.edu!jrd
- From: jrd@cc.usu.edu
- Newsgroups: comp.protocols.tcp-ip.ibmpc
- Subject: Re: Subnets and host addresses
- Message-ID: <1992Aug25.164517.58392@cc.usu.edu>
- Date: 25 Aug 92 16:45:16 MDT
- References: <1992Aug25.183830.16123@nlm.nih.gov>
- Organization: Utah State University
- Lines: 29
-
- In article <1992Aug25.183830.16123@nlm.nih.gov>, ivor@occs (Ivor D'Souza) writes:
- > I have a supposedly simple question. If I have a Class B address
- > 130.14.0.0 and use a netmask of 255.255.255.0, I realize that I could
- > have hosts from 130.14.1.1 through 130.14.254.254 (purposefully
- > avoiding all 0's and 255's). If, however, I were to use a netmask
- > of 255.255.192.0 (2 bit subnet), how would I be able to make use of
- > the leftover bits of the third octet to get the additional hosts I need?
- > Any attempts to explain this gruesome scenario will be deeply
- > appreciated. Thanks.
- >
- > -Ivor D'Souza
- > ivor@occs.nlm.nih.gov
- -------------
- The 6+8 bits left (actually right) over are for host idents. Think
- of the IP address as a full 32 bit binary field. 2**14 (-2) hosts is slightly
- more than most folks put on a wire (plus repeaters/bridges). A host is on
- "this network" if, after exclusive-ORing the source and destination IP bits
- (32 operations) and then ANDing the result with the subnet mask (32 more
- operations), the result is 32 zeros. Thus the subnet mask discards the "host"
- portion when deciding if the IP addresses are on same or different networks.
- In your case you have 14 right most bits of "host part."
- Unless there is a strong reason otherwise I suggest using more subnet
- bits to allow for future routers and less upheaval when they arrive.
- Might I recommend some interesting reading material: the book
- "Internetworking with TCP/IP", vol 1, by Douglas Comer. This is a classic and
- in-print gold mine of useful infomation on this and many other TCP/IP topics.
- Also acquire volume 2 if you have the interest because it is full of nifty
- things we need to know.
- Joe D.
-