Chapter 32Solaris PPP 4.0 Reference
This chapter provides detailed conceptual information about
Solaris PPP 4.0. Topics include the following:
Using PPP Options in Files and on the Command Line
Solaris PPP 4.0 contains a large set of options, which you
use to define your PPP configuration. You use these options in the PPP configuration
files, or on the command line, or by using a combination of files and command-line
options. This section contains detailed information about the use of PPP options
in configuration files and as arguments to PPP commands.
Where to Define PPP Options
Solaris PPP 4.0 configuration is very flexible.You can define PPP options
in the following places:
The next table lists the PPP configuration files and commands.
Table 32-1 Summary of PPP Configuration Files and Commands
File or Command | Definition | For Information |
/etc/ppp/options | A file that contains characteristics that apply by
default to all PPP links on the system, for example, whether the machine requires
peers to authenticate themselves. If this file is absent, non-root users are
prohibited from using PPP. | /etc/ppp/options Configuration File |
/etc/ppp/options.ttyname | A file that describes the characteristics of all communications
over the serial port ttyname. | /etc/ppp/options.ttynameConfiguration File |
/etc/ppp/peers | Directory that usually contains information about peers with
which a dial-out machine connects. Files in this directory are used with the call option of the pppd command. | Specifying Information for Communicating With the Dial-in Server |
/etc/ppp/peers/peer-name | A file that contains characteristics of the remote peer peer-name. Typical characteristics include the remote peer's phone
number and chat script for negotiating the link with the peer. | /etc/ppp/peers/peer-nameFile |
/etc/ppp/pap-secrets | A file that contains the necessary
security credentials for Password Authentication Protocol (PAP) authentication. | /etc/ppp/pap-secrets File |
/etc/ppp/chap-secrets | A file that contains the necessary
security credentials for Challenge-Handshake Authentication Protocol (CHAP)
authentication. | /etc/ppp/chap-secrets File |
~/.ppprc | File in the home directory of a PPP user, most often used with
dial-in servers. This file contains specific information about each user's
configuration. | Configuring User-Specific Options |
pppd options | Command and options for initiating
a PPP link and describing its characteristics. | How PPP Options Are Processed |
Refer to the pppd(1M)
man page for details on the PPP files. pppd (1M) also
includes comprehensive descriptions of all options that are available to the pppd command. Sample templates for all the PPP configuration files
are available in /etc/ppp.
How PPP Options Are Processed
All
Solaris PPP 4.0 operations are handled by the pppd daemon,
which starts when a user runs the pppd command. When a
user calls a remote peer, the following occurs:
The pppd daemon parses the following:
pppd scans the command line to determine
the device in use. The daemon does not yet interpret any options that are
encountered.
pppd tries to discover the serial device
to use by using the following criteria:
If a serial device is specified on the command line, or a
previously processed configuration file, pppd uses the
name of that device.
If no serial device is named, then pppd
searches for the notty, pty, or socket option on the command line. If one of these options is specified, pppd assumes that no device name exists.
Otherwise, if pppd discovers that standard
input is attached to a tty, then the name of the tty is used.
If pppd still cannot find a serial device, pppd terminates the connection and issues an error.
pppd then checks for the existence of the /etc/ppp/options.ttyname file. If the
file is found, pppd parses the file.
pppd processes any options on the command
line.
pppd negotiates the Link Control Protocol
(LCP) to set up the link.
(Optional) If authentication is required, pppd
reads /etc/ppp/pap-secrets or /etc/ppp/chap-secrets to authenticate the opposite peer.
The file /etc/ppp/peers/peer-name is read when the pppd daemon encounters
the option call peer-name on
the command line or in the other configuration files.
|