home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / DIP / _DIP.TAR / usr / doc / dip / README.NEWBIE2 < prev    next >
Encoding:
Internet Message Format  |  1995-01-13  |  4.6 KB

  1. From: Shan Zhu <shanzhu@eesun1.tamu.edu>
  2. To: uri@watson.ibm.com
  3. Subject: Re: problem of using dip
  4.  
  5. Hi, Uri,
  6. I actually solved the slip problem a few days ago. The following
  7. is the summary of how I solved the problems. The summary was also
  8. posted in the news group for other people.
  9.  
  10. Thanks for your concern
  11.  
  12. -shan
  13.  
  14. __________________________________________________________________________
  15.  
  16. I posted some questions regarding the setup of SLIP (with dynamic IP address
  17. assignment) using dip a few days
  18. ago. Thanks to a lot of friends on the network, the
  19. problems are solved. Since I also got several requests for the same problems,
  20. I'd like to summarize some important tips for those who are still
  21. struggling with their SLIP setups.  I think for those who use the terminal
  22. servers with static IP address assignment, the setup is quite simple (just
  23. get the sample script file and make some modifications). So, here, only the
  24.  case of dynamic IP address assignment is concerned.
  25. To my knowledge, there are two kinds of
  26. servers: one automatically (or by some commands) shows the IP address when
  27. you dial in.
  28. The other one uses BOOTP to send the IP address to the local systems (I believe
  29. most servers can also show IP address by some command, such as,
  30. "show port alt ip char" on Xyplex terminal servers, though). For those who
  31. use the first kind of servers, you can use the command "get $locip remote"
  32. (Note: not "get $rmtip remote") to capture the address,
  33. or if the IP address is not shown automatically, you
  34. should figure out what is the command to let the server show the address
  35. (you may need to ask the server managers since sometimes, the command
  36. is not that straightforward). For those who use the second type of servers
  37. (I mean  the servers not willing to show the address except through BOOTP).
  38. you may need the package of bootpc.v031.tgz at
  39. sunsite.unc.edu:pub/Linux/system/Network/admin.
  40. Since I didn't do this, I don't know the details about using BOOTP.
  41.  
  42. For servers which can somehow show the IP address, the following tips
  43.  may be helpful to setup SLIP.
  44.  
  45. 1. Give a name as the hostname of your local system and
  46.    setup the domain name, such as tamu.edu in my case, for your local system.
  47. 2. Put a name server in /etc/resolve.conf. You can take a look at some
  48.    existing systems in network for the format.
  49. 3. For easier debugging, you can use interactive mode by "dip -t" and "term" to
  50.    login to your terminal server and try the commands you want to put in your
  51.    dip script.
  52. 4. For those who use modems which need atdt as dial prefix, put an extra
  53.    "t" before the phone number since current dip uses atd as the prefix (you
  54.    need to make sure about your dip, though).
  55. 5. According to my experience, using "\r" at the end of command lines you send
  56.    to remote server is better than using "\n". I don't know why.
  57.  
  58. The above procedures are very effective for me. I am not sure they are the
  59. same for you, but at least you can try.
  60. The following is my script used for a Xyplex server.
  61.  
  62.  
  63.        main:
  64.          get $local jenny
  65.          get $remote 128.194.24.175
  66.  
  67.          # Set the desired serial port and speed.
  68.          port /dev/cua2
  69.          speed 38400
  70.           reset
  71.  
  72.          # Prepare for dialing.
  73.        #  send ATQ0V1E1X1
  74.          dial t845-1420
  75.          if $errlvl != 0 goto error
  76.          wait CONNECT 60
  77.          if $errlvl != 0 goto error
  78.  
  79.          # We are connected.  Login to the system.
  80.        login:
  81.          send \r\r
  82.          wait name> 4
  83.          if $errlvl != 0 goto error
  84.          send <your userID>\r
  85.          wait word> 4
  86.          if $errlvl != 0 goto error
  87.          send <passwd>\r
  88.          wait  Choice: 4
  89.          if $errlvl != 0 goto error
  90.          send 1\r
  91.        loggedin:
  92.  
  93.          # Set up the SLIP operating parameters.
  94.          get $mtu 1006 #you can put something less
  95.          # Set Destination net/address as type 'default' (vice an address).
  96.          # This is used by the 'route' command to set the kernel routing table.
  97.          # Some machines seem to require this be done for SLIP to work properly.
  98.  
  99.          # Say hello and fire up!
  100.        done:
  101.          wait Xyplex>  4
  102.          if $errlvl != 0 goto error
  103.          send show port alt ip char\r
  104.          wait Address: 10
  105.          get $locip remote 10
  106.          if $errlvl != 0 goto error
  107.          wait Address: 10
  108.          get $locip remote 10
  109.          if $errlvl != 0 goto error
  110.          default
  111.          print CONNECTED to eeslip local at $locip
  112.          send set port internet slip enable\r
  113.          mode SLIP
  114.          goto exit
  115.        error:
  116.          print SLIP to $remote failed.
  117.        err:
  118.          print I am here.
  119.        exit:
  120. ---------------------------------------
  121.  
  122. Good luck
  123.  
  124. --shan
  125.