Remote Computing
Setting up PPP
9-12
SPARCbook Portable Workstation User Guide
inactivity_timeout 120
interface ipdptp0
peer_system_name champagne-p
The first section runs the
ifconfig
command and configures the PPP
interface
ipdpt0
for a point-to-point link. The plumb option enables IP
to recognize the interface. The line also contains the host name of the
local machine (in this case ketch) and then the host name of the remote
machine (in this case champagne-p). Finally, the
up
option marks the
interface as operational.
The second section tells the link manager the name of the remote
machine and the name of the interface used for the connection. As a
minimum the path section must have the
interface
and
peer_system_name
entries.
ò
Dial-in Machine
To allow dial-in, the
/etc/asppp.cf
would have similar structure to
that of the dial-out machine except that in this case the destination is not
included in the
ifconfig
section but is included in the path. For
section example, the
/etc/asppp.cf
file for the SPARCbook frigate
(see Figure 9-2) might be as follows:
ifconfig ipd0 plumb frigate up
path
interface ipd0
peer_system_name ridge
peer_ip_address_sloop
In this case, the user of sloop logs in to this system as ridge. Note that
in order for the SPARCbooks, illustrated in Figure 9-2, to be able to
communicate using PPP, they would both require valid IP address and
host name information about each other in their respective
/etc/hosts
files.
Starting and stopping PPP
Solaris PPP will normally start up during the system boot process.
However you can start PPP manually with the following command
while logged in as root:
# /etc/init.d/asppp start
S3UG4_Book Page 12 Friday, August 8, 1997 11:37 am