home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / sysadmin / 7368 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  3.0 KB

  1. Path: sparky!uunet!mcsun!uknet!doc.ic.ac.uk!agate!spool.mu.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!physics!dmitri
  2. From: dmitri@physics (Dmitri Linde)
  3. Newsgroups: comp.sys.next.sysadmin
  4. Subject: Re: Solution to -NXHost re-directs with SLIP
  5. Message-ID: <1993Jan10.173320.10113@sol.ctr.columbia.edu>
  6. Date: 10 Jan 93 17:33:20 GMT
  7. References: <C0n41o.16s@ccu.umanitoba.ca> <C0nBHq.49x@news.cso.uiuc.edu>
  8. Sender: nobody@ctr.columbia.edu
  9. Organization: Stanford U.
  10. Lines: 45
  11. X-Posted-From: physics.stanford.edu
  12. NNTP-Posting-Host: sol.ctr.columbia.edu
  13.  
  14. >I would really like to hear if s.o. actually succeeded to do both at the same  
  15. >time: use -NXHost over SLIP and also use, say telnet, over the ethernet (en0)  
  16. >interface of the same machine.
  17. Actually it is possible and very easy. Here is my setup:
  18. linde (home machine) 36.92.0.118 running Marble SLIP as client
  19. physics (machine at Stanford U.) 36.92.0.18 running Marble SLIP as server with du0 (slip0) ip address=147.135.1.184
  20. elrond (another machine at home which is connected to linde using ethernet) 36.92.0.19
  21.  
  22. Here are routing tables for linde:
  23. linde> netstat -rn
  24. Routing tables
  25. Destination      Gateway            Flags     Refs     Use  Interface
  26. 147.135.1.184    36.92.0.118        UH          3     8913  du0
  27. 127.0.0.1        127.0.0.1          UH          2     2652  lo0
  28. 36.92.0.18       147.135.1.184      UGH         2      515  du0
  29. 36.92.0.19       36.92.0.19         UGH         0      138  en0
  30. 36.92.0.118      127.0.0.1          UH          9    11745  lo0
  31. default          147.135.1.184      UG          0     1400  du0
  32. linde> 
  33. Notice: 36.92.0.19       36.92.0.19 means that when linde wants to connect to elrond it will not use the default route to physics (147.135.1.184) but instead it will use 36.92.0.19 thu en0 (ethernet).
  34.  
  35. On both linde and physics I have the file /etc/resolv.conf contain the following
  36. domain stanford.edu
  37. nameserver 36.56.0.151
  38. nameserver 36.21.0.20
  39. nameserver 36.8.0.47
  40. It specifies my domain and the nameservers to use. Make sure you have something like this otherwise you will not be able to connect to hosts by name rather than ip address. (you must get your own nameservers)
  41.  
  42. Now, on physics I have to use arp command. Here is the command I use in rc.local
  43. sleep 15;arp -s linde 0:0:0f:00:9b:00 pub&
  44. This will advertize linde to the local net.
  45.  
  46.  
  47. The result is that from linde I can telnet (or connect in any other way) to/from any other Internet connected machine in the world. From linde I can also connect to elrond by simply
  48. telnet elrond
  49. (elrond and linde and physics are defined in NetInfo database so it does not have to find out the address of elrond. If it did try to find out the address of elrond it would not get 36.92.0.19 from the nameserver, and it would probably get 'host unknown')
  50. And it works!
  51.  
  52. Also the -NXHost from physics to linde works perfectly:
  53. physics> Date -NXHost linde
  54. This makes the Date application pop up on linde and lets me use it. (It is however slow...)
  55.  
  56. Regards,
  57. Dmitri Linde
  58. dmitri@physics.stanford.edu
  59.