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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!uwm.edu!miller.cs.uwm.edu!jimj
  2. From: jimj@miller.cs.uwm.edu (James Jegers)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Slip Documentation
  5. Date: 22 Jan 1993 00:03:55 GMT
  6. Organization: University of Wisconsin - Milwaukee
  7. Lines: 160
  8. Distribution: world
  9. Message-ID: <1jndlbINNma9@uwm.edu>
  10. NNTP-Posting-Host: 129.89.9.13
  11. Keywords: slip
  12.  
  13.    For all of you which are having problems with slip, I have
  14. written some DOCS on various things.. Let me know if you have
  15. any problems with it.
  16.  
  17.  
  18.     The easy to understand instructions on how to use/setup SLIP.
  19.  
  20.   I will be using two names, the remote side and the local side.
  21.  
  22.   remote side = the machine connected to the network, the machine with
  23.         the modem on answer, etc.
  24.         For me it is enigma or 129.89.9.119
  25.  
  26.   local side  = Your machine at home, the modem which will be dialing.
  27.         For me it is jimj   or 129.89.53.11
  28.  
  29.    
  30. 1. First to set up the modems.  Set them up at the highest baud rate at
  31.    which you can.  Note: currently baud's above 9600 have a tendency
  32.    to make 386bsd's serial port drivers puke, so you might want to test
  33.    them at a lower rate.
  34.    Make sure you have software flow control turned off, otherwise
  35.    the modems will "eat" all of the control-s's and control-q's which
  36.    get send across it.  (It took me a long time to figure why slip wasn't
  37.    working!!! grr) Set it to hardware control, or possibly turn it off.
  38.  
  39.    Also you need to make the remote modem answer the incoming call, 
  40.    See your modem manual for complete details, but for HAYES modems you
  41.    set the number of rings it picks up at by
  42.  
  43.    ats0=4     ->  to set the ring count to 4,
  44.           set it to 0 if you don't' want the modem to pick up anymore.
  45.  
  46.    I also turn echo off so the modem is spitting back what getty sends
  47.    to it.. I think it's  ate0 but can't remember for sure.
  48.  
  49.    You also need the slip driver compiled into your kernel, the default kernel
  50.    has this in it's config file.  The line looks like
  51.  
  52.    pseudo-device   sl      2
  53.  
  54.    There has also been many fixes to the slip driver in the patchkit,
  55.    Including this one which fixes a patch in the patchkit.
  56.  
  57. Article: 10918 of comp.unix.bsd
  58. From: sommerfeld@apollo.hp.com (Bill Sommerfeld)
  59. Subject: Re: [386bsd] SLIP is one way...
  60.  
  61. Part 2 of patch 19 appears to contain a bogus duplicate return:
  62.  
  63. ***************
  64. *** 623,629 ****
  65.         sc = (struct sl_softc *)tp->t_sc;
  66.         if (sc == NULL)
  67.                 return;
  68. !       if (!(tp->t_state&TS_CARR_ON))  /* XXX */
  69.                 return;
  70.  
  71.         ++sc->sc_bytesrcvd;
  72. --- 630,640 ----
  73.         sc = (struct sl_softc *)tp->t_sc;
  74.         if (sc == NULL)
  75.                 return;
  76. !       if (c > 255 || !(tp->t_state&TS_CARR_ON)) {       /* XXX 30 Aug 92*/
  77. !               sc->sc_flags |= SC_ERROR;
  78. !               return;
  79. !       }
  80. !
  81.                 return;        <-****!!!!****
  82.  
  83.         ++sc->sc_bytesrcvd;
  84.  
  85. .. which turns slinput into a noop.
  86. I just deleted that return from my kernel, rebuilt it, rebooted it,
  87. and I'm now typing this message over a SLIP link..
  88.  
  89. -------REMOTE SIDE------
  90.  
  91. 2. Create a login id which has sliplogin as a shell,
  92.    I don't think it needs to be a root account, but I haven't tried it
  93.    as a regular account yet...
  94.  
  95.    sjimj::0:10::0:0:James Jegers,786-3316,,:/rootjj:/usr/sbin/sliplogin
  96.  
  97. .  Modify the /etc/slip.hosts file to contain an entry which matches the
  98.    username in the password file.   Note the order of local/remote
  99.    address are reversed.
  100.          
  101.    login  remote addr   local addr      netmask           
  102.    sjimj  enigma        129.89.53.11    0xffffff00     normal 
  103.  
  104. 3. Make sure you have the files /etc/slip.login and /etc/slip.logout
  105.    in the /etc directory and that they are executable!, if they
  106.    are not there, you can probably copy them from
  107.    /usr/src/usr.sbin/sliplogin/slip.login
  108.  
  109. 4. Modify your /etc/ttys file to contain an getty entry so you can login
  110.    when you dial into the machine.  And make sure you turn the line
  111.    "on", and rehup your machine,  kill -HUP 1 
  112.    Note: there have been many patches to the com driver, and at least
  113.    one version of the com driver makes your mouse get screwed up
  114.    if you have getty running on the other com port.
  115.  
  116.    #  the std.9600 means ONLY 9600. use d9600 for 960,19200 switch
  117.    com2    "/usr/libexec/getty std.2400"   dailup  on secure
  118.  
  119. -------LOCAL SIDE-------
  120.  
  121. 5. Use kermit or tip to dial out of the modem.  Dial the number
  122.    Of the other modem, when it connects login as the slipuser(sjimj)
  123.    and it should say, "starting slip connection"
  124.  
  125. 6. Then suspend your kermit/tip session, or if you have your modem setup
  126.    to ignore DTR, you may quit your kermit/tip session.
  127.  
  128. 7. Run ifconfig to setup the device.
  129.  
  130.    ifconfig sl0 inet localaddr remoteaddr netmask 0xffffff00 metric 1
  131.  
  132.      ifconfig sl0 inet 129.89.53.11 129.89.9.119 netmask 0xffffff00 metric 1
  133.  
  134.    ifconfig sl0 now shows    
  135.      sl0: flags=11<UP,POINTOPOINT> metric 1
  136.          inet 129.89.53.11 --> 129.89.9.119 netmask ffffff00 
  137.  
  138.    netstat -r now shows
  139.      enigma           129.89.53.11       UH          1        1  sl0
  140.  
  141. 8. Run slattach to setup the connection.
  142.  
  143.    slattach /dev/com2 9600
  144.  
  145.      Note:  There is a new version of slattach out which support the 
  146.      compressed packets which is called with,
  147.  
  148.    slattach -a -s 9600 /dev/com2
  149.  
  150. 9. You should now be able to ping/telnet to the machine on the
  151.    other side of the slip connection.
  152.  
  153. 10.If you want to ping/connect to machine past the machine on the other
  154.    side of the slip connection you need to set all the routing information
  155.    on all of those other machine so that they know in order to get
  156.    to your machine they must first go though the machine which you are
  157.    connected to.
  158.     
  159. -----------------------------------------------------------------------------
  160. PS. I'm not responsible for anything you do with this document or anything
  161.     you wreck using it.  I just wrote the docs for to help the community.
  162.  
  163.      ______________________________________________________________
  164.     /\               University of Wisconsin -- Milwaukee          \
  165.     \_| Computing Services Division     Computer Science Department |
  166.       |   jimj@csd4.csd.uwm.edu           jimj@miller.cs.uwm.edu    |
  167.       |   jimj@convex.csd.uwm.edu                                   |
  168.       |   __________________________________________________________|___
  169.        \_/_____________________________________________________________/
  170.  
  171.  
  172.  
  173.