<chapter id="pppsvrconfig.intro-1"><title>Solaris PPP 4.0 (Overview)</title><highlights><para>This section covers serial networking
topics. Serial networking refers to
the use of a serial interface, such
as an RS-232 or V.35 port, to connect
two or more computers for data transfer.
Unlike LAN interfaces, such as Ethernet,
these serial interfaces are used to
connect systems that are separated
by large distances. PPP (Point-to-Point
Protocol) and UUCP (UNIX-to-UNIX CoPy)
are distinct technologies that can
be used to implement serial networking.
When a serial interface is configured
for networking, it is made available
for multiple users, in much the same
way as any other network interface,
such as Ethernet.</para><para>This chapter introduces Solaris
PPP 4.0. This version of PPP enables
two computers in different physical
locations to communicate with each
other by using PPP over a variety
of media. Starting with the Solaris
9 release, Solaris PPP 4.0 is included
as part of the base installation.</para><itemizedlist><para>The following topics are discussed:</para><listitem><para><olink targetptr="pppsvrconfig.intro-30" remap="internal">Solaris
PPP 4.0 Basics</olink></para>
</listitem><listitem><para><olink targetptr="pppsvrconfig.intro-6" remap="internal">PPP
Configurations and Terminology</olink></para>
</listitem><listitem><para><olink targetptr="pppsvrconfig.intro-7" remap="internal">PPP
Authentication</olink></para>
</listitem><listitem><para><olink targetptr="ppp.intro-19" remap="internal">Support for
DSL Users Through PPPoE</olink></para>
</listitem>
</itemizedlist>
</highlights><sect1 id="pppsvrconfig.intro-30"><title>Solaris PPP 4.0 Basics</title><para>Solaris PPP 4.0 implements
the Point-to-Point Protocol (PPP),
a data link protocol, which is a member
of the TCP/IP protocol suite. PPP
describes how data is transmitted
between two endpoint machines, over
communications media such as telephone
lines.</para><para>Since the early 1990s, PPP has
been a widely used Internet standard
for sending datagrams over a communications
link. The PPP standard is described
in RFC 1661 by the Point-to-Point
Working Group of the Internet Engineering
Task Force (IETF). PPP is commonly
used when remote  computers call an
Internet service provider (ISP) or
a corporate server that is configured
to receive incoming calls.</para><para>Solaris PPP 4.0 is based on
the publicly available Australian
National University (ANU) PPP&ndash;2.4
and implements the PPP standard. Both
asynchronous and synchronous PPP links
are supported.</para><sect2 id="pppsvrconfig.intro-88"><title>Solaris PPP 4.0 Compatibility</title><itemizedlist><para>Various versions of standard
PPP are available and in wide use
throughout the Internet community.
ANU PPP-2.4 is a popular choice for
Linux, Tru64 UNIX,and all three major
BSD variants:</para><listitem><para>FreeBSD</para>
</listitem><listitem><para>OpenBSD</para>
</listitem><listitem><para>NetBSD</para>
</listitem>
</itemizedlist><para>Solaris PPP 4.0 brings
the highly configurable features of
ANU PPP-2.4 to machines that run the
Solaris operating system. Machines
that run Solaris PPP 4.0 can easily
set up PPP links to any machine that
runs an implementation of standard
PPP. </para><itemizedlist><para>Some non-ANU-based PPP implementations
that successfully interoperate with
Solaris PPP 4.0 include the following:</para><listitem><para>Solaris PPP, also
known as <command>asppp</command>,
available with the Solaris 2.4 through
Solaris 8 releases</para>
</listitem><listitem><para><trademark>Solstice</trademark> PPP
3.0.1</para>
</listitem><listitem><para>Microsoft Windows
98 DUN</para>
</listitem><listitem><para>Cisco IOS 12.0 (synchronous)</para>
</listitem>
</itemizedlist>
</sect2><sect2 id="pppsvrconfig.intro-5"><title>Which
Version of Solaris PPP to Use</title><itemizedlist><para>Starting with the Solaris
9 release, Solaris PPP 4.0 is the
PPP implementation that is supported.
The Solaris 9 release and the Solaris
10 release do not include the earlier
Asynchronous Solaris PPP (<command>asppp</command>)
software. For more information, refer
to the following:</para><listitem><para><olink targetptr="pppsvrconfig.convert.app-1" remap="internal">Chapter&nbsp;23,
Migrating From Asynchronous Solaris
PPP to Solaris PPP 4.0 (Tasks)</olink></para>
</listitem><listitem><para>Solaris 8 System Administrator
Collection at <ulink url="http://docs.sun.com" type="text">http://docs.sun.com</ulink></para>
</listitem>
</itemizedlist><sect3 id="ppp.intro-16"><title>Why
Use Solaris PPP 4.0?</title><itemizedlist><para>If you currently use <command>asppp</command>, consider migrating
to Solaris PPP 4.0. Note the following
differences between the two Solaris
PPP technologies:</para><listitem><para><emphasis role="strong">Transfer
modes</emphasis></para><para><command>asppp</command> supports asynchronous communications
only. Solaris PPP 4.0 supports both
asynchronous communications and synchronous
communications.</para>
</listitem><listitem><para><emphasis role="strong">Configuration
process</emphasis></para><para>Setting
up <command>asppp</command> requires
configuring the <command>asppp.cf</command> configuration
file, three UUCP files, and the <command>ifconfig</command> command. Moreover,
you have to preconfigure interfaces
for all users who might log in to
a machine.</para><para>Setting up
Solaris PPP 4.0 requires defining
options for the PPP configuration
files, or issuing the <command>pppd</command> command
with options. You can also use a combination
of both the configuration file and
command-line methods. Solaris PPP
dynamically creates and removes interfaces.
You do not have to directly configure
PPP interfaces for each user.</para>
</listitem><listitem><para><emphasis role="strong">Solaris
PPP 4.0 features not available from
asppp</emphasis></para><itemizedlist><listitem><para>MS-CHAPv1 and MS-CHAPv2
authentication</para>
</listitem><listitem><para>PPP over Ethernet
(PPPoE), to support ADSL bridges </para>
</listitem><listitem><para>PAM authentication</para>
</listitem><listitem><para>Plug-in modules</para>
</listitem><listitem><para>IPv6 addressing</para>
</listitem><listitem><para>Data compression that
uses Deflate or BSD compress </para>
</listitem><listitem><para>Microsoft client-side
callback support</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>
</sect3><sect3 id="ppp.intro-17"><title>Solaris
PPP 4.0 Upgrade Path</title><para>If you are converting an existing <command>asppp</command> configuration to Solaris
PPP 4.0, you can use the translation
script that is provided with this
release. For complete instructions,
refer to <olink targetptr="ppp.convert-21" remap="internal">How to
Convert From asppp to Solaris PPP
4.0</olink>.</para>
</sect3>
</sect2><sect2 id="pppsvrconfig.intro-9"><title>Where
to Go for More Information About PPP</title><para>Many resources with information
about  PPP can be found in print and
online. The following subsections
give some suggestions.</para><sect3 id="pppsvrconfig.intro-3"><title>Professional
Reference Books About PPP</title><itemizedlist><para>For more information about widely
used PPP implementations, including
ANU PPP, refer to the following books:</para><listitem><para>Carlson, James. <citetitle>PPP Design, Implementation, and Debugging</citetitle>. 2nd ed. Addison-Wesley,
2000.</para>
</listitem><listitem><para>Sun, Andrew. <citetitle> Using
and Managing PPP</citetitle>. O'Reilly
&amp; Associates, 1999.</para>
</listitem>
</itemizedlist>
</sect3><sect3 id="pppsvrconfig.intro-35"><title>Web Sites About PPP</title><itemizedlist><para>Go to the following web sites
for general information about PPP:</para><listitem><para>For ANU PPP information,
go to the PPP repository of Australian
National University, <ulink url="http://pserver.samba.org/cgi-bin/cvsweb/ppp/" type="text">http://pserver.samba.org/cgi-bin/cvsweb/ppp/</ulink>.</para>
</listitem><listitem><para>For technical information,
FAQs, discussions about Solaris system
administration, and earlier versions
of PPP, go to Sun Microsystems' system
administrators' resource, <ulink url="http://www.sun.com/bigadmin/home/index.html" type="text">http://www.sun.com/bigadmin/home/index.html</ulink>.</para>
</listitem><listitem><para>For modem configuration
and advice about many different implementations
of PPP, refer to Stokely Consulting's
Web Project Management &amp; Software
Development web site: <ulink url="http://www.stokely.com/unix.serial.port.resources/ppp.slip.html" type="text">http://www.stokely.com/unix.serial.port.resources/ppp.slip.html</ulink>.</para>
</listitem>
</itemizedlist>
</sect3><sect3 id="ppp.intro-18"><title>Requests
for Comments (RFCs) About PPP</title><itemizedlist><para>Some useful Internet RFCs
about PPP include the following:</para><listitem><para>1661 and 1662, which
describe the major features of PPP</para>
</listitem><listitem><para>1334, which describes
authentication protocols, such as
Password Authentication Protocol (PAP)
and Challenge-Handshake Authentication
Protocol (CHAP)</para>
</listitem><listitem><para>1332, an informational
RFC that describes PPP over Ethernet
(PPPoE)</para>
</listitem>
</itemizedlist><para>To obtain copies of PPP RFCs,
specify the number of the RFC on the
IETF RFC web page at <ulink url="http://www.ietf.org/rfc.html" type="text">http://www.ietf.org/rfc.html</ulink>.</para>
</sect3><sect3 id="pppsvrconfig.intro-140"><title>Man Pages About PPP</title><itemizedlist><para>For technical details about
the Solaris PPP 4.0 implementation,
refer to the following man pages:</para><listitem><para><olink targetdoc="refman1m" targetptr="pppd-1m" remap="external"><citerefentry><refentrytitle>pppd</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> </para>
</listitem><listitem><para><olink targetdoc="refman1m" targetptr="chat-1m" remap="external"><citerefentry><refentrytitle>chat</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</listitem><listitem><para><olink targetdoc="refman1m" targetptr="pppstats-1m" remap="external"><citerefentry><refentrytitle>pppstats</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</listitem><listitem><para><olink targetdoc="refman1m" targetptr="pppoec-1m" remap="external"><citerefentry><refentrytitle>pppoec</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</listitem><listitem><para><olink targetdoc="refman1m" targetptr="pppoed-1m" remap="external"><citerefentry><refentrytitle>pppoed</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</listitem><listitem><para><olink targetdoc="refman1m" targetptr="sppptun-1m" remap="external"><citerefentry><refentrytitle>sppptun</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</listitem><listitem><para><olink targetdoc="refman1m" targetptr="snoop-1m" remap="external"><citerefentry><refentrytitle>snoop</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</listitem>
</itemizedlist><para>Also, see the man page for <command>pppdump</command>(1M). You can find
the PPP-related man pages by using
the <command>man</command> command.</para>
</sect3>
</sect2>
</sect1><sect1 id="pppsvrconfig.intro-6"><title>PPP
Configurations and Terminology</title><para>This section introduces PPP
configurations. The section also defines
terms that are used in this guide.</para><para>Solaris PPP 4.0 supports a number
of configurations.</para><itemizedlist><listitem><para>Switched-access, or <emphasis>dial-up</emphasis>, configurations</para>
</listitem><listitem><para>Hardwired, or <emphasis>leased-line</emphasis> configurations</para>
</listitem>
</itemizedlist><figure id="pppsvrconfig.intro-fig-10"><title>Parts of the PPP Link</title><mediaobject><imageobject><imagedata entityref="parts-ppp"/>
</imageobject><textobject><simpara>The diagram shows
the parts of a basic PPP link, which
is further described in the following
context.</simpara>
</textobject>
</mediaobject>
</figure><itemizedlist><para>The previous figure shows
a basic PPP link. The link has the
following parts:</para><listitem><para>Two machines, usually
in separate physical locations, called <emphasis>peers</emphasis>. A peer could be
a personal computer, engineering workstation,
large server, or even a commercial
router, depending on a site's requirements. </para>
</listitem><listitem><para>Serial interface on
each peer. On Solaris machines, this
interface could be <command>cua</command>, <command>hihp</command>, or other interface,
depending on whether you configure
asynchronous or synchronous PPP. </para>
</listitem><listitem><para>Physical link, such as
a serial cable, a modem connection,
or a leased line from a network provider,
such as a T1 or T3 line.</para>
</listitem>
</itemizedlist><sect2 id="pppsvrconfig.intro-41"><title>Dial-up PPP Overview</title><para>The most commonly used
PPP configuration is the <emphasis>dial-up
link</emphasis>. In a dial-up link,
the local peer <emphasis>dials up</emphasis> the
remote peer to establish the connection
and run PPP. In the dial-up process,
the local peer calls the remote peer's
telephone number to initiate the link.</para><para>A common dial-up scenario includes
a home computer that calls a peer
at an ISP, configured to receive incoming
calls. Another  scenario is a corporate
site where a local machine transmits
data over a PPP link to a peer in
another building.</para><para>In this guide, the local
peer that initiates the dial-up connection
is referred to as the <emphasis>dial-out
machine</emphasis>. The peer that
receives the incoming call is referred
to as the <emphasis>dial-in server</emphasis>.
This machine is actually  the target
peer of the dial-out machine and might
or might not be a true server.</para><para>PPP is not a client-server protocol.
Some PPP documents use the terms &ldquo;client&rdquo;
and &ldquo;server&rdquo; to refer
to telephone call establishment. A
dial-in server is not a true server
like a file server or name server.
Dial-in server is a widely used PPP
term because dial-in machines often &ldquo;serve&rdquo;
network accessibility to more than
one dial-out machine. Nevertheless,
the dial-in server is  the target
peer of the dial-out machine.</para><?SolBook prefpagebreak?><sect3 id="pppsvrconfig.intro-10"><title>Parts of the Dial-up PPP Link</title><para>See the following figure.</para><figure id="pppsvrconfig.intro-fig-3"><title>Basic Analog Dial-up PPP Link</title><mediaobject><imageobject><imagedata entityref="dial-up.link"/>
</imageobject><textobject><simpara>The graphic shows
a basic dial-up link between Locations
1 and 2, which is described in the
following context.</simpara>
</textobject>
</mediaobject>
</figure><itemizedlist><para>The configuration for Location
1, the dial-out side of the link,
is composed of the following elements:</para><listitem><para>Dial-out machine,
typically a personal computer or workstation
in an individual's home.</para>
</listitem><listitem><para>Serial interface on the
dial-out machine. <filename>/dev/cua/a</filename> or <filename>/dev/cua/b</filename> is the standard
serial interface for outgoing calls
on machines that run Solaris software.</para>
</listitem><listitem><para>Asynchronous modem
or ISDN terminal adapter (TA) that
is connected to a telephone jack.</para>
</listitem><listitem><para>Telephone lines and
services of a telephone company.</para>
</listitem>
</itemizedlist><itemizedlist><para>The configuration for Location
2, the dial-in side of the link, is
composed of the following elements:</para><listitem><para>Telephone jack or
similar connector, which is connected
to the telephone network</para>
</listitem><listitem><para>Asynchronous modem
or ISDN TA</para>
</listitem><listitem><para>Serial interface on the
dial-in server, either <literal>ttya</literal> or <literal>ttyb</literal> for incoming calls</para>
</listitem><listitem><para>Dial-in server, which
is connected to a network, such as
a corporate intranet, or, in the instance
of an ISP, the global Internet</para>
</listitem>
</itemizedlist>
</sect3><sect3 id="pppsvrconfig.intro-2"><title>Using
ISDN Terminal Adapters With a Dial-out
Machine</title><para>External ISDN TAs have
faster speeds than modems, but you
configure TAs in basically the same
way. The major difference in configuring
an ISDN TA is in the chat script,
which requires commands specific to
the TA's manufacturer. Refer to <olink targetptr="pppsvrconfig.reference-15" remap="internal">Chat
Script for External ISDN TA</olink> for
information about chat scripts for
ISDN TAs.</para>
</sect3><sect3 id="pppsvrconfig.intro-16"><title>What Happens During Dial-up
Communications</title><para>PPP configuration files
on both the dial-out and dial-in peers
contain instructions for setting up
the link. The following process occurs
as the dial-up link is initiated.</para><orderedlist><listitem><para>User or process on
the dial-out machine runs the <command>pppd</command> command to start the link.</para>
</listitem><listitem><para>Dial-out machine reads
its PPP configuration files. The dial-out
machine then  sends instructions over
the serial line to its modem, including
the phone number of the dial-in server.</para>
</listitem><listitem><para>Modem dials the phone
number to establish a telephone connection
with the modem on the dial-in server.</para><para>The series of text strings that
the dial-out machine sends to the
modem and dial-in server are contained
in a file called a <emphasis>chat
script</emphasis>. If necessary, the
dial-out machine sends commands to
the dial-in server to invoke PPP on
the server.</para>
</listitem><listitem><para>Modem attached to
the dial-in server begins link negotiation
with the modem on the dial-out machine. </para>
</listitem><listitem><para>When modem-to-modem
negotiation is completed, the modem
on the dial-out machine reports &ldquo;CONNECT.&rdquo;</para>
</listitem><listitem><para>PPP on both peers
enters <emphasis>Establish</emphasis> phase,
where Link Control Protocol (LCP)
negotiates basic link parameters and
the use of authentication.</para>
</listitem><listitem><para>If necessary, the
peers authenticate each other.</para>
</listitem><listitem><para>PPP's Network Control
Protocols (NCPs) negotiate the use
of network protocols, such as IPv4
or IPv6.</para>
</listitem>
</orderedlist><para>The dial-out machine can then
run <command>telnet</command> or a
similar command to a host that is
reachable through the dial-in server.</para>
</sect3>
</sect2><sect2 id="pppsvrconfig.intro-300"><title>Leased-Line PPP Overview</title><para>A
hardwired, <emphasis>leased-line</emphasis> PPP
configuration involves two peers that
are connected by a link. This link
consists of a switched or an unswitched
digital service leased from a provider.
Solaris PPP 4.0 works over any full-duplex,
point-to-point leased-line medium.
Typically, a company rents a hardwired
link from a network provider to connect
to an ISP or other remote site. </para><sect3 id="pppsvrconfig.intro-22"><title>Comparison of Dial-up and Leased-Line
Links</title><para>Both dial-up and leased-line
links involve two peers that are connected
by a communications medium. The next
table summarizes the differences between
the link types.</para><informaltable frame="topbot" pgwide="100"><tgroup cols="2" colsep="0" rowsep="0"><colspec colname="colspec0" colwidth="50*"/><colspec colname="colspec1" colwidth="50*"/><thead><row rowsep="1"><entry><para>Leased Line</para>
</entry><entry><para>Dial-up Line</para>
</entry>
</row>
</thead><tbody><row><entry><para>Always connected, unless a system
administrator or power failure takes
the leased-line down.</para>
</entry><entry><para>Initiated on demand, when a
user tries to call a remote peer.</para>
</entry>
</row><row><entry><para>Uses synchronous and asynchronous
communications. For asynchronous communications,
a long-haul modem is often used.</para>
</entry><entry><para>Uses asynchronous communications.</para>
</entry>
</row><row><entry><para>Rented from a provider.</para>
</entry><entry><para>Uses existing telephone lines.</para>
</entry>
</row><row><entry><para>Requires synchronous units.</para>
</entry><entry><para>Uses less costly modems.</para>
</entry>
</row><row><entry><para>Requires synchronous ports,
which are common on most SPARC systems.
However, synchronous ports are not
common on x86 systems and newer SPARC systems.</para>
</entry><entry><para>Uses standard serial interfaces
that are included on most computers.</para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</sect3><?SolBook prefpagebreak?><sect3 id="pppsvrconfig.intro-19"><title>Parts of a Leased-Line PPP
Link</title><para>See the following figure.</para><figure id="pppsvrconfig.intro-fig-11"><title>Basic Leased-Line Configuration</title><mediaobject><imageobject><imagedata entityref="leased-line.link"/>
</imageobject><textobject><simpara>The graphic shows
the parts of a leased-line-link, which
are described in the following context.</simpara>
</textobject>
</mediaobject>
</figure><itemizedlist><para>The leased-line link contains
the following parts:</para><listitem><para><emphasis role="strong">Two
peers</emphasis>, each peer at  one
end of the link. Each peer might be
a workstation or server. Often the
peer functions as a router between
its network or the Internet, and the
opposite peer.</para>
</listitem><listitem><para><emphasis role="strong">Synchronous
interface on each peer</emphasis>.
Some machines that run Solaris software
require you to purchase a synchronous
interface card, such as HSI/P, to
connect to a leased line. Other machines,
such as <trademark class="registered">UltraSPARC</trademark> workstations, have built-in
synchronous interfaces.</para>
</listitem><listitem><para><emphasis role="strong">CSU/DSU
synchronous digital unit on each peer</emphasis>,
which connects the synchronous port
to the leased line.</para><para>A CSU might be built-in
to the DSU, or owned by you, or leased
from a provider, depending on your
locale. The DSU gives the Solaris
machine a standard synchronous serial
interface. With Frame Relay, the Frame
Relay Access Device (FRAD) performs
the serial interface adaptation.</para>
</listitem><listitem><para><emphasis role="strong">Leased
line</emphasis>, providing switched
or unswitched digital services. Some
examples are SONET/SDH, Frame Relay
PVC, and T1.</para>
</listitem>
</itemizedlist>
</sect3><sect3 id="pppsvrconfig.intro-20"><title>What Happens During Leased-Line
Communications</title><para>On most types of leased lines,
peers do not actually dial each other.
Rather, a company purchases a leased-line
service to connect explicitly between
two fixed locations. Sometimes the
two peers at either end of the leased
line are at different physical locations
of the same company. Another scenario
is a company that sets up a router
on a leased line that is connected
to an ISP. </para><para>Leased lines are less commonly
used than dial-up links, though the
hardwired links are easier to set
up. Hardwired links do not require
chat scripts. Authentication is often
not used because both peers are known
to each other when a line is leased.
After the two peers initiate PPP over
the link, the link stays active. A
leased-line link remains active unless
the line fails, or either peer explicitly
terminates the link.</para><para>A peer on a leased line that
runs Solaris PPP 4.0 uses most of
the same configuration files that
define a dial-up link. </para><orderedlist><para>The following process occurs
to initiate communication over the
leased line:</para><listitem><para>Each peer machine runs
the <command>pppd</command> command
as part of the booting process or
another administrative script.</para>
</listitem><listitem><para>The peers read their
PPP configuration files.</para>
</listitem><listitem><para>The peers negotiate
communications parameters.</para>
</listitem><listitem><para>An IP link is established.</para>
</listitem>
</orderedlist>
</sect3>
</sect2>
</sect1><sect1 id="pppsvrconfig.intro-7"><title>PPP
Authentication</title><orderedlist><para><emphasis>Authentication</emphasis> is
the process of verifying that a user
is who he or she claims to be. The
UNIX login sequence is a simple form
of authentication:</para><listitem><para>The <command>login</command> command
prompts the user for a name and password.</para>
</listitem><listitem><para><command>login</command> then
attempts to authenticate the user
by looking up the typed user name
and password in the password database.</para>
</listitem><listitem><para>If the database contains
the user name and password, then the
user is <emphasis>authenticated</emphasis> and
given access to the system. If the
database does not contain the user
name and password, the user is denied
access to the system.</para>
</listitem>
</orderedlist><para>By default, Solaris PPP
4.0 does not demand authentication
on machines that do not have a default
route specified. Thus, a local machine
without a default route does not authenticate
remote callers. Conversely, if a machine
does have a default route defined,
the machine always authenticates remote
callers.</para><para>You might use PPP authentication
protocols to verify the identity of
callers who are trying to set up a
PPP link to your machine. Conversely,
you must configure PPP authentication
information if your local machine
must call peers that authenticate
callers. </para><sect2 id="pppsvrconfig.intro-14"><title>Authenticators and Authenticatees</title><para>The calling machine on
a PPP link is  considered the <emphasis>authenticatee</emphasis> because the caller must
prove its identity to the remote peer.
The peer is considered the <emphasis>authenticator</emphasis>. The authenticator looks
up the caller's identity in the appropriate
PPP files for the security protocol
and authenticates or does not authenticate
the caller.</para><para>You typically configure
PPP authentication for a dial-up link.
When the call begins, the dial-out
machine is the authenticatee. The
dial-in server is the authenticator.
The server has a database in the form
of a <emphasis>secrets</emphasis> file.
This file lists all users who are
granted permission to set up a PPP
link to the server. Think of these
users as <emphasis>trusted callers</emphasis>.</para><para>Some dial-out machines require
remote peers to provide authentication
information when responding to the
dial-out machine's call. Then their
roles are reversed: the remote peer
becomes the authenticatee and the
dial-out machine the authenticator.</para><note><para>PPP 4.0 does not prevent
authentication by leased-line peers,
but authentication is not often used
in leased-line links. The nature of
leased-line contracts usually means
that both participants on the ends
of the line are known to each other.
Both participants often are trusted.
However, because PPP authentication
is not that difficult to administer,
you should seriously consider implementing
authentication for leased lines.</para>
</note>
</sect2><sect2 id="pppsvrconfig.intro-150"><title>PPP Authentication Protocols</title><para>The PPP authentication
protocols are Password Authentication
Protocol (PAP) and Challenge-Handshake
Authentication Protocol (CHAP). Each
protocol uses a <emphasis>secrets</emphasis> database
that contains identification information,
or <emphasis>security credentials</emphasis>,
for each caller that is permitted
to link to the local machine. For
a detailed explanation of PAP, see <olink targetptr="pppsvrconfig.intro-8" remap="internal">Password
Authentication Protocol (PAP)</olink>.
For a CHAP explanation, see <olink targetptr="pppsvrconfig.reference-21" remap="internal">Challenge-Handshake
Authentication Protocol (CHAP)</olink>.</para>
</sect2><sect2 id="pppsvrconfig.intro-13"><title>Why Use PPP Authentication?</title><para>Providing authentication on
a PPP link is optional. Moreover,
though authentication does verify
that a peer is to be trusted, PPP
authentication does not provide confidentiality
of data. For confidentiality, use
encryption software, such as IPsec,
PGP, SSL, Kerberos, and the Solaris
Secure Shell.</para><note><para>Solaris PPP 4.0 does not
implement the PPP Encryption Control
Protocol (ECP), which is described
in RFC 1968.</para>
</note><itemizedlist><para>Consider implementing PPP authentication
in the following situations:</para><listitem><para>Your company accepts
incoming calls from users over the
public, switched telephone network.</para>
</listitem><listitem><para>Your corporate security
policy requires remote users to provide
authentication credentials when accessing
your network through a corporate firewall
or when engaging in secure transactions.</para>
</listitem><listitem><para>You want to authenticate
callers against a standard UNIX password
database, such as <filename>/etc/passwd</filename>,
NIS, NIS+, LDAP, or PAM. Use PAP authentication
for this scenario.</para>
</listitem><listitem><para>Your company's dial-in
servers also provide the network's
Internet connection. Use PAP authentication
for this scenario.</para>
</listitem><listitem><para>The serial line is
less secure than the password database
on the machine or networks at either
end of the link. Use CHAP authentication
for this scenario.</para>
</listitem>
</itemizedlist>
</sect2>
</sect1><sect1 id="ppp.intro-19"><title>Support
for DSL Users Through PPPoE</title><para>Many network providers
and individuals who are working at
home use Digital Subscriber Line (DSL)
technology to provide fast network
access. To support DSL users, Solaris
PPP 4.0 includes the PPP over Ethernet
(PPPoE) feature. PPPoE technology
enables multiple hosts to run PPP
sessions over one Ethernet link to
one or more destinations.</para><itemizedlist><para>If one of the following factors
applies to your situation, you should
use PPPoE:</para><listitem><para>You support
DSL users, possibly including yourself.
Your DSL service provider might require
users to configure a PPPoE tunnel
to receive services over the DSL line. </para>
</listitem><listitem><para>Your site is an ISP
that intends to offer PPPoE to customers.</para>
</listitem>
</itemizedlist><para>This section introduces terms
that are associated with PPPoE and
an overview of a basic PPPoE topology.</para><sect2 id="ppp.intro-20"><title>PPPoE
Overview</title><para><emphasis>PPPoE</emphasis> is
a proprietary protocol from RedBack
Networks. PPPoE is a discovery protocol,
rather than another version of standard
PPP. In a PPPoE scenario, a machine
that initiates PPP communications
first must locate, or <emphasis>discover</emphasis>,
a peer that runs PPPoE. The PPPoE
protocol uses Ethernet broadcast packets
to locate the peer. </para><para>After the discovery process,
PPPoE sets up an Ethernet-based tunnel
from the initiating host, or <emphasis>PPPoE
client</emphasis>, to the peer, the <emphasis>PPPoE access server</emphasis>. <emphasis>Tunneling</emphasis> is the practice
of running one protocol on top of
another protocol.  Using PPPoE, Solaris
PPP 4.0 tunnels PPP over Ethernet
IEEE 802.2, both of which are data
link protocols. The resulting PPP
connection behaves like a dedicated
link between the PPPoE client and
the access server. For detailed information
about PPPoE, see <olink targetptr="ppp.reference-45" remap="internal">Creating
PPPoE Tunnels for DSL Support</olink>.</para>
</sect2><sect2 id="ppp.intro-21"><title>Parts
of a PPPoE Configuration</title><para>Three participants are involved
in a PPPoE configuration: a consumer,
a telephone company, and a service
provider, as the following figure
shows.</para><figure id="ppp.intro-fig-28"><title>Participants
in a PPPoE Tunnel</title><mediaobject><imageobject><imagedata entityref="PPPoE-basic" width="100"/>
</imageobject><textobject><simpara>The figure shows
how PPPoE is implemented at an enterprise,
a telephone company, and a service
provider.</simpara>
</textobject>
</mediaobject>
</figure><sect3 id="ppp.intro-22"><title>PPPoE
Consumers</title><para>As system administrator, you
might assist consumers with their
PPPoE configurations. One common type
of PPPoE consumer is an individual
who needs to run PPPoE over a DSL
line. Another PPPoE consumer is a
company that purchases a DSL line
through which employees can run PPPoE
tunnels, as illustrated in the previous
figure. </para><para>The main reason for a corporate
consumer to use PPPoE is to offer
PPP communications through a high-speed
DSL device to a number of hosts. Often,
 a single PPPoE client has an individual <emphasis>DSL modem</emphasis>. Or, a group
of clients on a hub might share a
DSL modem that is also connected to
the hub by an Ethernet line.</para><note><para>DSL devices are technically
bridges, not modems. However, because
common practice is to refer to these
devices as modems, this guide uses
the term &ldquo;DSL modem.&rdquo;</para>
</note><para>PPPoE runs PPP over a tunnel
on the Ethernet line that is connected
to the DSL modem. That line is connected
to a splitter, which, in turn connects
to a telephone line.</para>
</sect3><sect3 id="ppp.intro-23"><title>PPPoE
at a Telephone Company</title><para>The telephone company
is the middle layer of the PPPoE scenario.
The telephone company splits the signal
that is received over the phone line
by using a device that is called a <emphasis>Digital Subscriber Line Access Multiplexer
(DSLAM)</emphasis>. The DSLAM breaks
out the signals onto separate wires,
analog wires for telephone service,
and digital wires for PPPoE. From
the DSLAM, the digital wires extend
the tunnel over an ATM data network
to the ISP.</para>
</sect3><sect3 id="ppp.intro-24"><title>PPPoE
at a Service Provider</title><para>The ISP receives the PPPoE transmission
from the ATM data network over a bridge.
At the ISP, an access server that
runs PPPoE functions as the peer for
the PPP link. The access server is
very similar in function to the dial-in
server that was introduced in <olink targetptr="pppsvrconfig.intro-fig-3" remap="internal">Figure
15&ndash;2</olink>, but the access
server does not use modems. The access
server converts the individual PPPoE
sessions into regular IP traffic,
for example Internet access.</para><para>If you are a system administrator
for an ISP, you might be responsible
for configuring and maintaining an
access server.</para>
</sect3>
</sect2><sect2 id="ppp.intro-25"><title>Security
on a PPPoE Tunnel</title><para>The PPPoE tunnel is inherently
insecure. You can use PAP or CHAP
to provide user authentication for
the PPP link that is running over
the tunnel.</para>
</sect2>
</sect1>
</chapter>