home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
ppp221
/
pppd_man
< prev
next >
Wrap
Text File
|
1995-11-29
|
35KB
|
846 lines
PPPD(8) Unix Programmer's Manual PPPD(8)
NAME
pppd - Point to Point Protocol daemon
SYNOPSIS
pppd [ tty_name ] [ speed ] [ options ]
DESCRIPTION
The Point-to-Point Protocol (PPP) provides a method for transmitting
datagrams over serial point-to-point links. PPP is composed of three
parts: a method for encapsulating datagrams over serial links, an
extensible Link Control Protocol (LCP), and a family of Network Control
Protocols (NCP) for establishing and configuring different network-layer
protocols.
The encapsulation scheme is provided by driver code in the kernel. pppd
provides the basic LCP, authentication support, and an NCP for
establishing and configuring the Internet Protocol (IP) (called the IP
Control Protocol, IPCP).
FREQUENTLY USED OPTIONS
<tty_name>
Communicate over the named device. The string "/dev/" is prepended
if necessary. If no device name is given, or if the name of the
controlling terminal is given, pppd will use the controlling
terminal, and will not fork to put itself in the background.
<speed>
Set the baud rate to <speed> (a decimal number). On systems such as
4.4BSD and NetBSD, any speed can be specified. Other systems (e.g.
SunOS) allow only a limited set of speeds.
asyncmap <map>
Set the async character map to <map>. This map describes which
control characters cannot be successfully received over the serial
line. pppd will ask the peer to send these characters as a 2-byte
escape sequence. The argument is a 32 bit hex number with each bit
representing a character to escape. Bit 0 (00000001) represents the
character 0x00; bit 31 (80000000) represents the character 0x1f or
^_. If multiple asyncmap options are given, the values are ORed
together. If no asyncmap option is given, no async character map
will be negotiated for the receive direction; the peer should then
escape all control characters.
auth Require the peer to authenticate itself before allowing network
packets to be sent or received.
connect <p>
Use the executable or shell command specified by <p> to set up the
serial line. This script would typically use the chat(8) program to
dial the modem and start the remote ppp session.
crtscts
Use hardware flow control (i.e. RTS/CTS) to control the flow of data
on the serial port. If neither the crtscts nor the -crtscts option
1
PPPD(8) Unix Programmer's Manual PPPD(8)
is given, the hardware flow control setting for the serial port is
left unchanged.
defaultroute
Add a default route to the system routing tables, using the peer as
the gateway, when IPCP negotiation is successfully completed. This
entry is removed when the PPP connection is broken.
disconnect <p>
Run the executable or shell command specified by <p> after pppd has
terminated the link. This script could, for example, issue commands
to the modem to cause it to hang up if hardware modem control
signals were not available.
escape xx,yy,...
Specifies that certain characters should be escaped on transmission
(regardless of whether the peer requests them to be escaped with its
async control character map). The characters to be escaped are
specified as a list of hex numbers separated by commas. Note that
almost any character can be specified for the escape option, unlike
the asyncmap option which only allows control characters to be
specified. The characters which may not be escaped are those with
hex values 0x20 - 0x3f or 0x5e.
file <f>
Read options from file <f> (the format is described below).
lock Specifies that pppd should create a UUCP-style lock file for the
serial device to ensure exclusive access to the device.
mru <n>
Set the MRU [Maximum Receive Unit] value to <n> for negotiation.
pppd will ask the peer to send packets of no more than <n> bytes.
The minimum MRU value is 128. The default MRU value is 1500. A
value of 296 is recommended for slow links (40 bytes for TCP/IP
header + 256 bytes of data).
mtu <n>
Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
requests a smaller value via MRU negotiation, pppd will request that
the kernel networking code send data packets of no more than n bytes
through the PPP network interface.
netmask <n>
Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
notation (e.g. 255.255.255.0). If this option is given, the value
specified is ORed with the default netmask. The default netmask is
chosen based on the negotiated remote IP address; it is the
appropriate network mask for the class of the remote IP address,
ORed with the netmasks for any non point-to-point network interfaces
in the system which are on the same network.
passive
Enables the "passive" option in the LCP. With this option, pppd
will attempt to initiate a connection; if no reply is received from
the peer, pppd will then just wait passively for a valid LCP packet
2
PPPD(8) Unix Programmer's Manual PPPD(8)
from the peer (instead of exiting, as it does without this option).
silent
With this option, pppd will not transmit LCP packets to initiate a
connection until a valid LCP packet is received from the peer (as
for the `passive' option with ancient versions of pppd).
OPTIONS
<local_IP_address>:<remote_IP_address>
Set the local and/or remote interface IP addresses. Either one may
be omitted. The IP addresses can be specified with a host name or
in decimal dot notation (e.g. 150.234.56.78). The default local
address is the (first) IP address of the system (unless the
noipdefault option is given). The remote address will be obtained
from the peer if not specified in any option. Thus, in simple
cases, this option is not required. If a local and/or remote IP
address is specified with this option, pppd will not accept a
different value from the peer in the IPCP negotiation, unless the
ipcp-accept-local and/or ipcp-accept-remote options are given,
respectively.
-ac Disable Address/Control compression negotiation (use default, i.e.
address/control field compression disabled).
-all Don't request or allow negotiation of any options for LCP and IPCP
(use default values).
-am Disable asyncmap negotiation (use the default asyncmap, i.e. escape
all control characters).
-as <n>
Same as asyncmap <n>
bsdcomp nr,nt
Request that the peer compress packets that it sends, using the BSD-
Compress scheme, with a maximum code size of nr bits, and agree to
compress packets sent to the peer with a maximum code size of nt
bits. If nt is not specified, it defaults to the value given for
nr. Values in the range 9 to 15 may be used for nr and nt; larger
values give better compression but consume more kernel memory for
compression dictionaries. Alternatively, a value of 0 for