home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / pppisdn.txt < prev    next >
Internet Message Format  |  1997-07-07  |  5KB

  1. Date: Sat, 13 Apr 1996 20:15:17 -0700 (PDT)
  2. From: Nobody <rmarc@netcom.com>
  3. Subject: Serial ISDN using MLPPP
  4.  
  5. R Marc Phillips | Need and be abandoned.
  6. rmarc@netcom.com| Hope and be denied.
  7. Semi-Psychotic  | Love and be destroyed.
  8. Mostly Confused | -me
  9.  
  10. This is a basic guide to using ppp over an external ISDN device.  As of
  11. yet there are no drivers that I know of for ISDN cards readily available
  12. in the USA.  This is a guide to ISDN over a serial port.
  13.  
  14. The first thing you'll need is PPP compiled on your linux system.  With 
  15. most releases of Linux Slackware, it is an option on recompiling and 
  16. sometimes installing.  If you don't have it you can get the latest BETA from:
  17.  
  18. ftp.funet.fi:/pub/Linux/BETA/ppp/ppp-2.2
  19.  
  20. Note that this is for later kernels (1.3.8x and above) for earlier kernels
  21. you may want to look for ppp2.2.0d or e.  A search on www.yahoo.com for ppp
  22. should yield something.
  23.  
  24. Once you have that installed and functional (you can usual see if it's 
  25. functional, if you're not sure, by just typing pppd at a prompt. You'll 
  26. then see a bunch of garbage start scrolling across your screen.  This 
  27. means you have it installed.  It'll time out in a minute or two or you 
  28. can go to another virtual terminal and kill the process.).
  29.  
  30. Now you'll want to make a pap-secrets file.  This is a file that simply 
  31. contains you username and password.  PAP stands for Password 
  32. Authentication Protocol which is a function of PPP and a required 
  33. component of MultilinkPPP as defined in the RFC documentation on 
  34. Multilink protocols:
  35.  
  36. http://www.cis.ohio-state.edu/htbin/rfc/rfc1356.html
  37.  
  38. I'd advise that you put this file in /etc/ppp and call it something like 
  39. pap or pap-secrets.  What you name it really doesn't matter.  The file 
  40. should have two lines in it.  The first line containing your username 
  41. and the second containing your password.
  42.  
  43. Once you've done that, you can try out a PPP connection.  The easiest way 
  44. would be to make a file called "pppfix" or something (again, it can be 
  45. called whatever you want).  Here is an example:
  46.  
  47. #!/bin/sh
  48. pppd modem crtscts defaultroute +ua [path to pap file] connect 'chat \
  49. ABORT BUSY ABORT ERROR "" AT[init string] OK ATD[ISP's Phone #] CONNECT' \
  50. [your comm port] 115200
  51.  
  52. There are two parts to this, the pppd component and the chat component.
  53.  
  54. I've put anything that you need to decide upon in square brackets.  You 
  55. need to replace those with the appropriate information.  Say you made a 
  56. file in your /etc/ppp directory called "pap" that contains your username 
  57. and password.  You'd put in /etc/ppp/pap replacing "[path to pap file]."
  58. For "[init string]" you'll want to put in the appropriate string for 
  59. MultilinkPPP (this will work equally as well for a modem, so if you want 
  60. to use your modem put in a string for it).  You can look in your manual 
  61. to find the appropriate string.  I'll give a few:
  62.  
  63. For a 3com impact put in: s71=1s80=1&d2
  64. For a Bitsurfer put in: %a2=92@b0=2&d2
  65. For a Bitsurfer Pro: %a2=92@b0=2@m2=p&d2
  66. For an Adtran ISU express: s54=12&d2
  67.  
  68. Add whatever else you would normally for your box, but these are what is 
  69. necessary for MultilinkPPP plus the &d2 which will insure that your box 
  70. will hang up when you disconnect.  Some TA's have a hard time hanging up
  71. without that &d2 (especially the Bitsurfer and Bitsurfer pro)
  72.  
  73. After the ATD you put in your ISP's ISDN phone number in replace of 
  74. "[ISP's Phone #]." (note that with the Bitsurfer and Bitsurfer pro it is 
  75. necessary to tell the TA to dial the same number twice seperated by an "&."
  76. It is not necessary to put in an escape character).
  77.  
  78. Where you see "[your comm port]" you'll need to replace that with the 
  79. appropriate comm port. In most cases that will be /dev/cuaX where the X 
  80. is a number between 0 and 3.  0 being comm1 and 3 being comm4.
  81.  
  82. Now make the file executable by typing "chmod 755 <filename>" or 
  83. whatever you'd like the permissions to be (700 if you only want root to 
  84. have rights to it).  You'll want to also make sure that your pap file 
  85. is readible to whomever is running the pppd process so that it'll log in. To 
  86. run it you'd simply type the name of the file.
  87.  
  88. When you run this it should connect and then you can type "ifconfig" at 
  89. your prompt.  You should see that you have an "inet addr"  under "Link 
  90. encap: Point-Point Protocol" like so:
  91.  
  92. lo        Link encap:Local Loopback  
  93.           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
  94.           UP BROADCAST LOOPBACK RUNNING  MTU:2000  Metric:1
  95.           RX packets:132 errors:0 dropped:0 overruns:0
  96.           TX packets:132 errors:0 dropped:0 overruns:0
  97.  
  98. ppp0      Link encap:Point-Point Protocol  
  99.           inet addr:204.31.114.199  P-t-P:163.179.20.26  Mask:255.255.255.0
  100.           UP POINTOPOINT RUNNING  MTU:1500  Metric:1
  101.           RX packets:47 errors:0 dropped:0 overruns:0
  102.           TX packets:62 errors:0 dropped:0 overruns:0
  103.  
  104. To hang up, kill the process.  If you don't know how to do that type "man 
  105. ps" and then "man kill" and read.
  106.  
  107. Here's an example:
  108.  
  109. kill `ps -x | grep pppd | head -1 | cut -c2-5`
  110.  
  111. You should then write scripts to manage your ppp connections.
  112.  
  113. This is only one way to do it, there are others.  You can download some 
  114. scripts for this from the following ftp site:
  115.  
  116. ftp.netcom.com/ftp/pub/rm/rmarc/lnxstuff.zip
  117.  
  118. There's a readme file with it.  I didn't write these scripts and they are 
  119. not the ones I use.  They are nice for a beginner and do not use PAP so 
  120. you'll have to modify them if you want to do MultilinkPPP.
  121.  
  122.  
  123. Have fun.
  124.  
  125.  
  126.