home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
ppp221
/
!ReadMe
< prev
next >
Wrap
Text File
|
1996-12-20
|
13KB
|
278 lines
PPPdriver (2.21) - PPP driver for Acorn TCP/IP stack and FreeNet 2.XX
NOTE: this program is SHAREWARE. Read the 'Licence' file for more info.
PPP is a network protocol that allows two computers to exchange IP packets
over serial lines. It is used by most Internet providers to allow remote
computers to connect to Internet via a modem dialup.
PPPdriver allows the Acorn TCP/IP stack or FreeNet to communicate with remote
hosts using serial lines. PPPdriver conforms to the DCI4 specification: this
means that it will currently work with Acorn's Internet software (both
version 4.07 and 5.02) and with FreeNet 2.00 or later but doesn't work with
older versions of FreeNet (eg. 1.02) that are DCI2-compatible.
A DCI2-compatible PPPdriver is available as a separate package. Note that the
DCI2 PPPdriver is no longer supported since a DCI4 version of FreeNet is
finally available (version 2.00 or later) and Acorn includes its own DCI4
Internet stack in RISC OS 3.60 or later.
Since PPPdriver is a rather plain port of the Unix pppd command and supports
the same command line interface, the documentation for PPPdriver will be
limited, refer to the pppd manual (supplied in the 'pppd_man' file) for more
detailed informations of the pppd syntax, authentication and routing.
Index
-----
- Installing
- Commands provided
- PPP files
- Connecting to an Internet provider
- SLIP vs PPP
- Disclaimer
- Known bugs
- Limitation of the ShareWare version
- Upgrades
- Contacting the Author
Installing
----------
PPPdriver can be installed either in the !Internet.drivers directory or in
!System.Modules.Network, together with all the other drivers. You should also
copy the "PPP" directory supplied in the PPPdriver archive in
!Internet.files.
If you are using PPPdriver with FreeNet 2.XX you should install PPPdriver in
the !FreeNet.Drivers directory alongside SLIPdriver and copy the "PPP"
directory in !FreeUser.Files.
PPPdriver can be loaded just like SLIPdriver (2.00):
RMRun INet:drivers.PPPdriver (if you installed it in !Internet.drivers)
or
RMRun System:Modules.Network.PPPdriver (if you installed it in !System.Modules.Network)
or
RMRun FreeNet:Drivers.PPPdriver (if you are using it with FreeNet 2.XX)
Commands provided
-----------------
PPPdriver provides 4 commands: pppd, pppstats, pppkill and pppreopen.
*pppd
This is the most important command since it deals with the setup of a PPP
connection. pppd works like Unix's pppd (with a few restrictions and
changes), refer to the pppd manual for a full documentation.
Unlike its Unix counterpart (that requires a tty name and speed), RISC OS
pppd accepts the name of the serial driver, the port number and the speed
(just like SLIPdriver).
PPP is an 'intelligent' protocol, it negotiates all the options between the
two connecting hosts in order to deal with different setups and requirements.
This means that usually the command required to connect to an Internet
provider is just:
pppd modem defaultroute noipdefault <Driver> <Port> <Speed>
- 'modem' means that PPPdriver will use modem control lines (Carrier Detect,
Data Terminal Ready) and hardware flow control (RTS/CTS)
- 'defaultroute' causes PPPdriver to set the default route to the remote host
(ie it automatically execute a "route add default <RemoteIP> 1" command)
- 'noipdefault' means that PPPdriver will ask the local IP address to the
remote host (this is needed for dynamically allocated IP addresses but
should also work for fixed IP addresses)
Note that PPPdriver, unlike SLIPdriver, doesn't need any "ifconfig" or "route
add" command since pppd automatically executes them once the IP negotiation
is done.
If your provider requires PAP authentication you need to use something like:
pppd modem defaultroute noipdefault user <Username> pwd <Password> <Driver> <Port> <Speed>
If you need to specify your IP address or the remote IP address:
pppd modem defaultroute noipdefault <LocalAddr>:<RemoteAddr> <Driver> <Port> <Speed>
You can omit <RemoteAddr> or <LocalAddr> if you just need one of the two.
Other useful parameters:
- 'local' is the opposite of 'modem' (ie don't use hardware flow control and
modem control lines). It can be used if you need to connect two computers
using a very simple nullmodem cable with just the send and receive line.
- 'asyncmap 0' can be used to prevent PPP from sending control characters as
a two-character escape sequence. You should only need this option if you
are connecting together two computers using a nullmodem cable.
- 'passive' prevents PPP from closing the connection if the remote host
doesn't reply to the negotiation packets. This can be used if you want to
try a PPP connection and eventually keep PPP listening if the remote host
isn't ready.
- 'silent' is similar to 'passive' but doesn't even initiates a connection
(ie PPP will just wait to receive some valid negotiation packet)
- 'debug' causes PPPdriver to print a lot of extra debug informations in the
debug file (see 'PPP files' below). You should only use this parameter if
PPPdriver fails the negotiation process; in fact it will log every packet
sent and received, so the debug file will grow very quickly.
If you need some esoteric pppd parameter you can have a look at the pppd
manual. Note that the following commands are not implemeted because they are
very Unix-specific: connect, disconnect, file, lock, detach, kdebug, login.
The configuration files (/etc/ppp/options and ~/.ppprc) mentioned in the pppd
manual are not implemeted, while the files stored (under Unix) in /etc/ppp
(eg ip-up) are stored (under RISC OS) in the InetDBase:PPP directory (ie
!Internet.files.PPP, usually). Finally, the 'pwd' parameter (used to specify
the PAP password) available in the RISC OS version is not available under
Unix; if you want you can use the 'pap-secr' file as in Unix although this is
not recommended nor useful.
*pppstats
This command shows some statistics about the PPP connections. The only
parameter accepted by 'pppstats' is 'all' that allows more statistics to be
displayed.
You can use this command to monitor the efficiency of the BSD Compression (if
it is used) and the quality of the serial line. When the serial line doesn't
lose any packet the "receive parity errors", "receive framing errors",
"unknown types received" and "input packets tossed" figures should be 0.
*pppkill
To close an active connection you should use the 'pppkill <ppp unit>' command
(eg. 'pppkill 0' if you want to close the first connection). PPPdriver will
then send the 'connection closed' packets to the remote host and drop the
connection. An alternative way to close all the PPP connections is to 'RMKill
PPPdriver' although this is a very rough and not recommended method!
*pppreopen
This command is only useful if BSD Compression is used and forces PPPdriver
to restart the compression negotiation. This can be useful if the compression
has been disabled due to some failures (eg packets lost due to serial line
failures) but should not be used otherwise; to detect this case you should
try the 'pppstats' command, if it says "BSD Compression (currently disabled)"
you could try to reenable it using 'pppreopen'.
PPP files
---------
PPPdriver prints some information about the connection in the file
!Internet.DebugPPP (or !FreeUser.DebugPPP). Unless you specify the 'debug'
flag on the 'pppd' command line (see above) it just prints a few informations
once the connection is established, otherwise it prints much more debug
messages, including the dump of every sent and received packet.
This file may grow larger and larger, especially if the system crashes (or
you reset it) while PPPdriver is loaded; you must always "RMKill PPPdriver"
before turning the computer off! If everything is working fine you should
delete this file regularly, but if PPPdriver fails the negotiation process
or if you notice something strange (eg excessively slow or often dropped
connections, incorrect routing, etc.) you should send this file to me so that
I could hopefully find the cause of your problems.
PPPdriver uses the !Internet.files.PPP (or !FreeUser.Files.PPP) directory to
store the 'i