summaryrefslogtreecommitdiffstats
path: root/slackbook/html/network-configuration-ppp.html
blob: 06dd7203f57a0c793653c94ef4004157e0c6d376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>PPP</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
<link rel="UP" title="Network Configuration" href="network-configuration.html" />
<link rel="PREVIOUS" title="TCP/IP Configuration"
href="network-configuration-tcpip.html" />
<link rel="NEXT" title="Wireless" href="network-configuration-wireless.html" />
<link rel="STYLESHEET" type="text/css" href="docbook.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<th colspan="3" align="center">Slackware Linux Essentials</th>
</tr>

<tr>
<td width="10%" align="left" valign="bottom"><a href="network-configuration-tcpip.html"
accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 5 Network Configuration</td>
<td width="10%" align="right" valign="bottom"><a
href="network-configuration-wireless.html" accesskey="N">Next</a></td>
</tr>
</table>

<hr align="LEFT" width="100%" />
</div>

<div class="SECT1">
<h1 class="SECT1"><a id="NETWORK-CONFIGURATION-PPP" name="NETWORK-CONFIGURATION-PPP">5.4
PPP</a></h1>

<p>Many people still connect to the Internet through some kind of dialup connection. The
most common method is PPP, though SLIP is still occasionally used. Setting up your system
to speak PPP to a remote server is pretty easy. We've included a few tools to help you in
setting it up.</p>

<div class="SECT2">
<h2 class="SECT2"><a id="AEN1954" name="AEN1954">5.4.1 <tt
class="COMMAND">pppsetup</tt></a></h2>

<p>Slackware includes a program called <tt class="COMMAND">pppsetup</tt> to configure
your system to use your dialup account. It shares a look and feel similar to our <tt
class="COMMAND">netconfig</tt> program. To run the program, make sure you are logged in
as root. Then type <tt class="COMMAND">pppsetup</tt> to run it. You should see a screen
like this:</p>

<p>The program will present a series of questions, to which you will feed it appropriate
answers. Things like your modem device, the modem initialization string, and the ISP
phone number. Some items will have a default, which you can accept in most cases.</p>

<p>After the program runs, it will create a <tt class="COMMAND">ppp-go</tt> program and a
<tt class="COMMAND">ppp-off</tt> program. These are used to start and stop, respectively,
the PPP connection. The two programs are located in <tt class="FILENAME">/usr/sbin</tt>
and need root privileges to run.</p>
</div>

<div class="SECT2">
<h2 class="SECT2"><a id="AEN1969" name="AEN1969">5.4.2 <tt
class="FILENAME">/etc/ppp</tt></a></h2>

<p>For most users, running <tt class="COMMAND">pppsetup</tt> will be sufficient. However,
there may be an instance where you want to tweak some of the values used by the PPP
daemon. All of the configuration information is kept in <tt
class="FILENAME">/etc/ppp</tt>. Here is a list of what the different files are for:</p>

<div class="INFORMALTABLE"><a id="AEN1975" name="AEN1975"></a>
<table border="0" frame="void" class="CALSTABLE">
<col width="1*" />
<col width="3*" />
<tbody>
<tr>
<td><tt class="COMMAND">ip-down</tt></td>
<td>
<p>This script is run by <tt class="COMMAND">pppd</tt> after the PPP connection is
ended.</p>
</td>
</tr>

<tr>
<td><tt class="COMMAND">ip-up</tt></td>
<td>
<p>This script is run by <tt class="COMMAND">pppd</tt> when there's a successful ppp
connection. Put any commands you want run after a successful connection in this file.</p>
</td>
</tr>

<tr>
<td><tt class="FILENAME">options</tt></td>
<td>
<p>General configuration options for <tt class="COMMAND">pppd</tt>.</p>
</td>
</tr>

<tr>
<td><tt class="FILENAME">options.demand</tt></td>
<td>
<p>General configuration options for <tt class="COMMAND">pppd</tt> when run in demand
dialing mode.</p>
</td>
</tr>

<tr>
<td><tt class="COMMAND">pppscript</tt></td>
<td>
<p>The commands sent to the modem.</p>
</td>
</tr>

<tr>
<td><tt class="FILENAME">pppsetup.txt</tt></td>
<td>
<p>A log of what you entered when you ran <tt class="COMMAND">pppsetup</tt>.</p>
</td>
</tr>
</tbody>
</table>
</div>

<div class="NOTE">
<table class="NOTE" width="100%" border="0">
<tr>
<td width="25" align="CENTER" valign="TOP"><img src="./imagelib/admon/note.png"
hspace="5" alt="Note" /></td>
<td align="LEFT" valign="TOP">
<p>Most of these files won't be there until after you run <tt
class="COMMAND">pppsetup</tt>.</p>
</td>
</tr>
</table>
</div>
</div>
</div>

<div class="NAVFOOTER">
<hr align="LEFT" width="100%" />
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="network-configuration-tcpip.html"
accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href="index.html"
accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href="network-configuration-wireless.html"
accesskey="N">Next</a></td>
</tr>

<tr>
<td width="33%" align="left" valign="top">TCP/IP Configuration</td>
<td width="34%" align="center" valign="top"><a href="network-configuration.html"
accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">Wireless</td>
</tr>
</table>
</div>
</body>
</html>