home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / admin / 7223 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  3.4 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!gdt!ccsis
  2. From: ccsis@sunlab1.bath.ac.uk (Icarus Sparry)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Netmask Questions
  5. Message-ID: <C1D6yD.6rr@sunlab1.bath.ac.uk>
  6. Date: 24 Jan 93 15:27:10 GMT
  7. References: <FPB.93Jan17104229@ittc.ittc.wec.com> <1jf55qINN9ai@early-bird.think.com>
  8. Organization: Bath University Computing Services, UK
  9. Lines: 67
  10.  
  11. (Bogus distribution of 'comp' deleted).
  12. In the referenced article, barmar@think.com (Barry Margolin) writes:
  13. >In article <FPB.93Jan17104229@ittc.ittc.wec.com> fpb@ittc.wec.com (Frank P. Bresz) writes:
  14. >>    The problem comes in the fact
  15. >>    that the 3/280 lives on both the 129.228.8.XXX loop and the
  16. >>    129.228.112.XXX loop and I can't seem to set different netmasks for
  17. >>    ie0 and ie2.  i.e. it couldn't telnet to 129.228.8.238 or any high
  18. >>    numbered 129.228.8.XXX machine.
  19. >
  20. >Most TCP/IP implementations, including Sun's, require all the subnets of a
  21. >network to use the same netmask.  The RIP routing protocol, for instance,
  22. >doesn't include netmasks with the routes.
  23. >
  24. >>    Is what I am trying just impossible?  Is it unreasonable.  The
  25. >>    reasoning for this is that I can get 2nd ethernet cards for a
  26. >>    SPARCStation cheaper than I can buy a bridge.  Or I wouldn't bother
  27. >>    routing packets I would just bridge the segments.
  28. >
  29. >You can use a Sun as a router.  The problem is that you're trying to have
  30. >multiple levels of subnetting, and current implementations don't support
  31. >that.  All subnets of 129.228 have to use the same subnet mask.
  32.  
  33. Much as I hate to disagree with Barry, he is wrong. The proof is the network
  34. that we run here (138.38.x.x). He is correct in saying that you have
  35. problems with RIP, but we use static routing here for everything.
  36.  
  37. Problems which you need to know about
  38.  
  39. 1) Sun do not document how they select which interface they will use if
  40. more than one interface appears to be suitable. It turns out that they
  41. try the interfaces in order, and use the first one. This means that you
  42. must have the most restrictive netmask on the first (ie0 in this case)
  43. interface.
  44.  
  45. 2) bootparamd is pretty stupid. It chooses an interface at random. I have
  46. a re-written version somewhere which does 'best match' rather than 'first
  47. match', which works.
  48.  
  49. 3) You need to use static routing, but this is often a good idea as
  50. it places less load on the machines. In our case we have disk-less
  51. machines which are booted off the gateways, so if the gateway is
  52. down so is the machine, so the fact that it could get to our backbone
  53. is of little interest.
  54.  
  55.  
  56. =============================================== netmask 255.255.0.0
  57.         | le2 138.38.32.33         | le2 138.38.32.34
  58.     |++++++|                   |++++++|
  59.     | sl1a |------         ----| sl1b |
  60.     |++++++| le1 |        |le1 |++++++|
  61. 138.38.35.2      |        |       | le0 138.38.35.65
  62.         | le0    |        |       | netmask 255.255.255.192
  63.         |        =================|
  64.         |                 |       |
  65.         |=================        |
  66.         |                         |
  67. netmask 255.255.255.192           |
  68.    to slc-01 to slc-17            |
  69.                          to slc-18 to slc-35
  70.  
  71. The 'le1' interface of sl1a has address 138.38.35.66, and the 'le1'
  72. interface of sl1b has address 138.38.35.1.
  73.  
  74. So the solution to Franks original problem could be to turn off dynamic
  75. routing, and swap over the ethernet cables to his two interfaces.
  76.  
  77. Icarus
  78.