home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / ppp115 / !ReadMe < prev    next >
Text File  |  1996-12-16  |  12KB  |  276 lines

  1. PPPdriver (1.15) - PPP driver for FreeNet 1.XX
  2.  
  3. NOTE: this program is SHAREWARE. Read the 'Licence' file for more info.
  4.  
  5. PPP is a network protocol that allows two computers to exchange IP packets
  6. over serial lines. It is used by most Internet providers to allow remote
  7. computers to connect to Internet via a modem dialup.
  8.  
  9. PPPdriver allows the FreeNet (1.XX) TCP/IP stack to communicate with remote
  10. hosts using serial lines. PPPdriver conforms to the DCI2 specification: this
  11. means that it will work with the versions of FreeNet older than 2.00 (such as
  12. 1.02) but doesn't work with Acorn TCP/IP stack or with FreeNet 2.00 or later
  13. (that are DCI4-compatible).  A DCI4-compatible PPPdriver is available as a
  14. separate package. 
  15.  
  16. This DCI2 version of PPPdriver is no longer developed since a DCI4 version of
  17. FreeNet is finally available (version 2.00 or later) and Acorn includes its
  18. own DCI4 Internet stack in RISC OS 3.60 or later.
  19.  
  20. Since PPPdriver is a rather plain port of the Unix pppd command and supports
  21. the same command line interface, the documentation for PPPdriver will be
  22. limited, refer to the pppd manual (supplied in the 'pppd_man' file) for more
  23. detailed informations of the pppd syntax, authentication and routing.
  24.  
  25.  
  26. Index
  27. -----
  28.  
  29. - Installing
  30. - Commands provided
  31. - PPP files
  32. - Connecting to an Internet provider
  33. - SLIP vs PPP
  34. - Disclaimer
  35. - Known bugs
  36. - Limitation of the ShareWare version
  37. - Upgrades
  38. - Contacting the Author
  39.  
  40.  
  41. Installing
  42. ----------
  43.  
  44. PPPdriver should be installed in the !FreeNet.Drivers directory alongside
  45. SLIPdriver. You should also copy the "PPP" directory supplied in the
  46. PPPdriver archive in !FreeUser.Files.
  47.  
  48. PPPdriver can be loaded just like SLIPdriver (check for the relevant section
  49. in the FreeNet Startup file):
  50. RMRun FreeNet:Drivers.PPPdriver 1500
  51.  
  52.  
  53. Commands provided
  54. -----------------
  55.  
  56. PPPdriver provides 4 commands: pppd, pppstats, pppkill and pppreopen.
  57.  
  58. *pppd
  59.  
  60. This is the most important command since it deals with the setup of a PPP
  61. connection. pppd works like Unix's pppd (with a few restrictions and
  62. changes), refer to the pppd manual for a full documentation.
  63. Unlike its Unix counterpart (that requires a tty name and speed), RISC OS
  64. pppd accepts the name of the serial driver, the port number and the speed
  65. (just like SLIPdriver).
  66.  
  67. PPP is an 'intelligent' protocol, it negotiates all the options between the
  68. two connecting hosts in order to deal with different setups and requirements.
  69. This means that usually the command required to connect to an Internet
  70. provider is just:
  71. pppd modem defaultroute noipdefault <Driver> <Port> <Speed>
  72. - 'modem' means that PPPdriver will use modem control lines (Carrier Detect,
  73.   Data Terminal Ready) and hardware flow control (RTS/CTS)
  74. - 'defaultroute' causes PPPdriver to set the default route to the remote host
  75.   (ie it automatically execute a "route add default <RemoteIP> 1" command)
  76. - 'noipdefault' means that PPPdriver will ask the local IP address to the
  77.   remote host (this is needed for dynamically allocated IP addresses but
  78.   should also work for fixed IP addresses)
  79.  
  80. Note that PPPdriver, unlike SLIPdriver, doesn't need any "ifconfig" or "route
  81. add" command since pppd automatically executes them once the IP negotiation
  82. is done.
  83.  
  84. If your provider requires PAP authentication you need to use something like:
  85. pppd modem defaultroute noipdefault user <Username> pwd <Password> <Driver> <Port> <Speed>
  86.  
  87. If you need to specify your IP address or the remote IP address:
  88. pppd modem defaultroute noipdefault <LocalAddr>:<RemoteAddr> <Driver> <Port> <Speed>
  89. You can omit <RemoteAddr> or <LocalAddr> if you just need one of the two.
  90.  
  91. Other useful parameters:
  92. - 'local' is the opposite of 'modem' (ie don't use hardware flow control and
  93.   modem control lines). It can be used if you need to connect two computers
  94.   using a very simple nullmodem cable with just the send and receive line.
  95. - 'asyncmap 0' can be used to prevent PPP from sending control characters as
  96.   a two-character escape sequence. You should only need this option if you
  97.   are connecting together two computers using a nullmodem cable.
  98. - 'passive' prevents PPP from closing the connection if the remote host
  99.   doesn't reply to the negotiation packets. This can be used if you want to
  100.   try a PPP connection and eventually keep PPP listening if the remote host
  101.   isn't ready.
  102. - 'silent' is similar to 'passive' but doesn't even initiates a connection
  103.   (ie PPP will just wait to receive some valid negotiation packet)
  104. - 'debug' causes PPPdriver to print a lot of extra debug informations in the
  105.   debug file (see 'PPP files' below). You should only use this parameter if
  106.   PPPdriver fails the negotiation process; in fact it will log every packet
  107.   sent and received, so the debug file will grow very quickly.
  108.  
  109. If you need some esoteric pppd parameter you can have a look at the pppd
  110. manual. Note that the following commands are not implemeted because they are 
  111. very Unix-specific: connect, disconnect, file, lock, detach, kdebug, login.
  112. The configuration files (/etc/ppp/options and ~/.ppprc) mentioned in the pppd
  113. manual are not implemeted, while the files stored (under Unix) in /etc/ppp
  114. (eg ip-up) are stored (under RISC OS) in the InetDBase:PPP directory (ie
  115. !FreeUser.Files.PPP, usually). Finally, the 'pwd' parameter (used to specify
  116. the PAP password) available in the RISC OS version is not available under
  117. Unix; if you want you can use the 'pap-secr' file as in Unix although this is
  118. not recommended nor useful.
  119.  
  120. *pppstats
  121.  
  122. This command shows some statistics about the PPP connections. The only
  123. parameter accepted by 'pppstats' is 'all' that allows more statistics to be
  124. displayed.
  125. You can use this command to monitor the efficiency of the BSD Compression (if
  126. it is used) and the quality of the serial line. When the serial line doesn't
  127. lose any packet the "receive parity errors", "receive framing errors",
  128. "unknown types received" and "input packets tossed" figures should be 0.
  129.  
  130. *pppkill
  131.  
  132. To close an active connection you should use the 'pppkill <ppp unit>' command
  133. (eg. 'pppkill 0' if you want to close the first connection). PPPdriver will
  134. then send the 'connection closed' packets to the remote host and drop the
  135. connection. An alternative way to close all the PPP connections is to 'RMKill
  136. PPPdriver' although this is a very rough and not recommended method!
  137.  
  138. To close an active connection you should use the 'pppkill <ppp unit>'
  139. command. PPPdriver will then send the 'connection closed' packets to the
  140. remote host and drop the connection. An alternative way to close all the PPP
  141. connections is to 'RMKill PPPdriver' although this is a very rough and not
  142. recommended method!
  143.  
  144. *pppreopen
  145.  
  146. This command is only useful if BSD Compression is used and forces PPPdriver
  147. to restart the compression negotiation. This can be useful if the compression
  148. has been disabled due to some failures (eg packets lost due to serial line
  149. failures) but should not be used otherwise; to detect this case you should
  150. try the 'pppstats' command, if it says "BSD Compression (currently disabled)"
  151. you could try to reenable it using 'pppreopen'.
  152.  
  153.  
  154. PPP files
  155. ---------
  156.  
  157. PPPdriver prints some information about the connection in the file
  158. !FreeUser.DebugFile. Unless you specify the 'debug' flag on the 'pppd'
  159. command line (see above) it just prints a few informations once the
  160. connection is established, otherwise it prints much more debug messages,
  161. including the dump of every sent and received packet.
  162. This file may grow larger and larger, especially if the system crashes (or
  163. you reset it) while PPPdriver is loaded; you must always "RMKill PPPdriver"
  164. before turning the computer off! If everything is working fine you should
  165. delete this file regularly, but if PPPdriver fails the negotiation process 
  166. or if you notice something strange (eg excessively slow or often dropped
  167. connections, incorrect routing, etc.) you should send this file to me so that
  168. I could hopefully find the cause of your problems.
  169.  
  170. PPPdriver uses the !FreeUser.Files.PPP directory to store the 'ip-up' and
  171. 'ip-down' files; they are run, rispectively, when the connection is
  172. established and when it is dropped. The 'PPP' directory distributed with the
  173. PPPdriver archive con