home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / protocol / tcpip / ibmpc / 4892 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  2.0 KB

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