[246c904] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[246c904] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[e72dc56] | 6 |
|
---|
[dd7f181] | 7 | <!ENTITY ppp-download-http "http://samba.org/ftp/ppp/ppp-&ppp-version;.tar.gz">
|
---|
[fb2e525] | 8 | <!ENTITY ppp-download-ftp "&gentoo-ftp-repo;/ppp-&ppp-version;.tar.gz">
|
---|
[e3f388e5] | 9 | <!ENTITY ppp-md5sum "4621bc56167b6953ec4071043fe0ec57">
|
---|
| 10 | <!ENTITY ppp-size "920 KB">
|
---|
| 11 | <!ENTITY ppp-buildsize "6.4 MB">
|
---|
[d37e1110] | 12 | <!ENTITY ppp-time "0.1 SBU">
|
---|
[246c904] | 13 | ]>
|
---|
| 14 |
|
---|
[f07203c5] | 15 | <sect1 id="ppp" xreflabel="PPP-&ppp-version;">
|
---|
[c99aa38] | 16 | <?dbhtml filename="ppp.html"?>
|
---|
[4839c17] | 17 |
|
---|
| 18 |
|
---|
[c99aa38] | 19 | <title>PPP-&ppp-version;</title>
|
---|
[4839c17] | 20 |
|
---|
[c99aa38] | 21 | <indexterm zone="ppp">
|
---|
| 22 | <primary sortas="a-PPP">PPP</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to PPP</title>
|
---|
[4839c17] | 27 |
|
---|
[893d9711] | 28 | <para>The <application>PPP</application> package contains the
|
---|
[4839c17] | 29 | <command>pppd</command> daemon and the <command>chat</command>
|
---|
[c99aa38] | 30 | program. This is used for connecting to other machines; often for connecting to
|
---|
| 31 | the Internet via a dial-up or PPPoE connection to an ISP.</para>
|
---|
[4839c17] | 32 |
|
---|
[9bc2a2c] | 33 | &lfs70_checked;
|
---|
| 34 |
|
---|
[c99aa38] | 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>Download (HTTP): <ulink url="&ppp-download-http;"/></para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (FTP): <ulink url="&ppp-download-ftp;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download MD5 sum: &ppp-md5sum;</para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download size: &ppp-size;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Estimated disk space required: &ppp-buildsize;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated build time: &ppp-time;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </itemizedlist>
|
---|
[4839c17] | 56 |
|
---|
[c99aa38] | 57 | <bridgehead renderas="sect3">PPP Dependencies</bridgehead>
|
---|
[4839c17] | 58 |
|
---|
[ba41c33] | 59 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e3f388e5] | 60 | <para role="optional"><xref linkend="libpcap"/> (needed to do PPP filtering)
|
---|
| 61 | and <xref linkend="linux-pam"/> (to authenticate incoming calls using PAM -
|
---|
| 62 | only needed by ISPs).
|
---|
| 63 | </para>
|
---|
[4839c17] | 64 |
|
---|
[7e1f3aa] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 66 | <ulink url="&blfs-wiki;/PPP"/></para>
|
---|
[7e1f3aa] | 67 |
|
---|
[c99aa38] | 68 | </sect2>
|
---|
[4839c17] | 69 |
|
---|
[c99aa38] | 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of PPP</title>
|
---|
| 72 |
|
---|
| 73 | <note id="ppp-kernel">
|
---|
[782820d] | 74 | <para><application>PPP</application> support (CONFIG_PPP),
|
---|
[ab8365a] | 75 | the asynchronous line discipline (CONFIG_PPP_ASYNC), the
|
---|
| 76 | driver for your serial port device and/or the PPP over Ethernet
|
---|
| 77 | (PPPoE) protocol driver (CONGIG_PPPOE) must be compiled into the
|
---|
| 78 | kernel or loaded as kernel modules.
|
---|
[e3f388e5] | 79 | Udev doesn't load the ppp_generic and pppoe modules automatically. If you
|
---|
| 80 | compiled them as modules they can be loaded by the modules bootscript if
|
---|
| 81 | they are mentioned in <filename>/etc/sysconfig/modules</filename>
|
---|
[ab8365a] | 82 | file.</para>
|
---|
[c99aa38] | 83 | </note>
|
---|
[4839c17] | 84 |
|
---|
[c99aa38] | 85 | <indexterm zone="ppp ppp-kernel">
|
---|
| 86 | <primary sortas="d-PPP-support">PPP support</primary>
|
---|
| 87 | </indexterm>
|
---|
[4839c17] | 88 |
|
---|
[ab8365a] | 89 | <para>Create (as <systemitem class="username">root</systemitem>)
|
---|
| 90 | the group for users who may run <application>PPP</application>:</para>
|
---|
| 91 |
|
---|
| 92 | <screen role="root"><userinput>groupadd -g 52 pppusers</userinput></screen>
|
---|
| 93 |
|
---|
[e3f388e5] | 94 | <para>Compile <application>PPP</application> by running the
|
---|
[c99aa38] | 95 | following commands:</para>
|
---|
| 96 |
|
---|
[e3f388e5] | 97 | <screen><userinput>rm include/linux/if_pppol2tp.h &&
|
---|
| 98 | ./configure --prefix=/usr &&
|
---|
[c99aa38] | 99 | make</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | <para>This package does not come with a test suite.</para>
|
---|
[4839c17] | 102 |
|
---|
[c99aa38] | 103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 104 |
|
---|
[ab8365a] | 105 | <screen role='root'><userinput>make install &&
|
---|
[e3f388e5] | 106 | install -d /etc/ppp/peers</userinput></screen>
|
---|
[4839c17] | 107 |
|
---|
[c99aa38] | 108 | </sect2>
|
---|
[4839c17] | 109 |
|
---|
[c99aa38] | 110 | <sect2 role="commands">
|
---|
| 111 | <title>Command Explanations</title>
|
---|
| 112 |
|
---|
[601a838] | 113 | <para><command>rm include/linux/if_pppol2tp.h</command>:
|
---|
| 114 | <application>PPP-&ppp-version;</application> contains an out of date copy
|
---|
| 115 | of the kernel header <filename>linux/if_pppol2tp.h</filename>. This needs to
|
---|
[e3f388e5] | 116 | be removed to <emphasis>force</emphasis> it to use the one installed in
|
---|
[601a838] | 117 | <filename class="directory">/usr</filename>. If you don't remove this file
|
---|
| 118 | the build will still succeed (thanks to a poorly written
|
---|
| 119 | <filename>Makefile</filename>) but it will fail to compile the
|
---|
| 120 | <filename class="libraryfile">openl2tp.so</filename>,
|
---|
| 121 | <filename class="libraryfile">pppol2tp.so</filename>,
|
---|
| 122 | and <filename class="libraryfile">rp-pppoe.so</filename> plugins:</para>
|
---|
[4839c17] | 123 |
|
---|
[f48fe3c] | 124 | <para><command>install -d /etc/ppp/peers</command>: This command creates
|
---|
[e3f388e5] | 125 | a directory for PPP peer configuration files.</para>
|
---|
[f48fe3c] | 126 |
|
---|
[782820d] | 127 | <!-- FIXME: the three options below are taken from pppd/Makefile.linux file.
|
---|
| 128 | They have not been tested. There are other options, such as USE_SRP=y,
|
---|
| 129 | that cannot work (in this case, because libsrp is not available from
|
---|
| 130 | anywhere) - Alexander E. Patrakov -->
|
---|
| 131 |
|
---|
| 132 | <para><parameter>USE_PAM=y</parameter>: Add this argument to the
|
---|
| 133 | <command>make</command> command to compile in support for PAM, usually
|
---|
| 134 | needed for authenticating inbound calls against a central database.</para>
|
---|
| 135 |
|
---|
| 136 | <para><parameter>HAVE_INET6=y</parameter>: Add this argument to the
|
---|
| 137 | <command>make</command> command to compile in support for IPv6.</para>
|
---|
| 138 |
|
---|
| 139 | <para><parameter>CBCP=y</parameter>: Add this argument to the
|
---|
[8c9e2f6e] | 140 | <command>make</command> command to compile in support for the
|
---|
[782820d] | 141 | Microsoft proprietary Callback Control Protocol.</para>
|
---|
| 142 |
|
---|
[c99aa38] | 143 | </sect2>
|
---|
[4839c17] | 144 |
|
---|
[c99aa38] | 145 | <sect2 role="configuration">
|
---|
| 146 | <title>Configuring PPP</title>
|
---|
| 147 |
|
---|
| 148 | <sect3 id="ppp-config">
|
---|
| 149 | <title>Config Files</title>
|
---|
[4839c17] | 150 |
|
---|
[c99aa38] | 151 | <para><filename>/etc/ppp/*</filename></para>
|
---|
[4839c17] | 152 |
|
---|
[c99aa38] | 153 | <indexterm zone="ppp ppp-config">
|
---|
| 154 | <primary sortas="e-etc-ppp-star">/etc/ppp/*</primary>
|
---|
| 155 | </indexterm>
|
---|
[4839c17] | 156 |
|
---|
[c99aa38] | 157 | </sect3>
|
---|
[4839c17] | 158 |
|
---|
[c99aa38] | 159 | <sect3>
|
---|
| 160 | <title>Configuration Information</title>
|
---|
[4839c17] | 161 |
|
---|
[3a79861] | 162 | <para>Add the users who may run <application>PPP</application> to the
|
---|
| 163 | <systemitem class="groupname">pppusers</systemitem> group:</para>
|
---|
[c5923846] | 164 |
|
---|
[3a79861] | 165 | <screen role="root"><userinput>usermod -a -G pppusers <replaceable><username></replaceable></userinput></screen>
|
---|
| 166 |
|
---|
[e3f388e5] | 167 | <para>Most internet service providers that use ppp give you a username
|
---|
| 168 | and password for you to use to authenticate yourself when you connect to
|
---|
| 169 | their servers. These secrets are kept in the files
|
---|
| 170 | <filename>/etc/ppp/pap-secrets</filename> or
|
---|
| 171 | <filename>/etc/ppp/chap-secrets</filename>. If you don't know whether
|
---|
| 172 | your ISP uses CHAP or PAP then create both files and put the same content
|
---|
| 173 | in both files.</para>
|
---|
| 174 |
|
---|
| 175 | <para>If you have more than one ISP account the second column
|
---|
| 176 | (remotename) is used to identify between the different
|
---|
| 177 | usernames/passwords needed for the different ISPs. If you only have one
|
---|
| 178 | ISP account an asterisk will work fine in the second column.</para>
|
---|
| 179 |
|
---|
| 180 | <para>In this example the username given by the ISP is
|
---|
| 181 | <quote>jdoe</quote>, the password is <quote>guessit</quote>, the ISP uses
|
---|
| 182 | PAP and the user wants to give this account the remotename
|
---|
| 183 | <quote>dialup</quote> in order to distinguish it from other PPP
|
---|
| 184 | accounts:</para>
|
---|
| 185 |
|
---|
| 186 | <screen role="root"><userinput>cat >>/etc/ppp/pap-secrets <<"EOF"</userinput>
|
---|
| 187 | <literal># username remotename password
|
---|
| 188 | jdoe dialup guessit</literal>
|
---|
| 189 | <userinput>EOF
|
---|
| 190 | chmod 600 /etc/ppp/pap-secrets</userinput></screen>
|
---|
| 191 |
|
---|
[782820d] | 192 | <sect4>
|
---|
[e3f388e5] | 193 | <title>DNS Server Configuration</title>
|
---|
| 194 |
|
---|
| 195 | <para>If you don't run your own caching DNS server (like
|
---|
[601a838] | 196 | <xref linkend="bind"/>) <command>pppd</command> can ask your ISP for its
|
---|
| 197 | domain name servers and put them in <filename>/etc/ppp/resolv.conf</filename>.
|
---|
| 198 | If you want to use their domain name servers:</para>
|
---|
[e3f388e5] | 199 |
|
---|
| 200 | <screen role="root"><userinput>mv /etc/resolv.conf{,.orig}
|
---|
| 201 | ln -s ppp/resolv.conf /etc</userinput></screen>
|
---|
| 202 |
|
---|
[782820d] | 203 | </sect4>
|
---|
| 204 |
|
---|
| 205 | <sect4>
|
---|
[e3f388e5] | 206 | <title>PPPoE connections</title>
|
---|
| 207 |
|
---|
| 208 | <para>In order to configure a PPPoE connection, create a peer file that
|
---|
| 209 | contains the connection details:</para>
|
---|
| 210 | <screen role="root"><userinput>cat >/etc/ppp/peers/<replaceable>peername</replaceable> <<"EOF"</userinput>
|
---|
| 211 | <literal>plugin rp-pppoe.so <replaceable>eth0</replaceable>
|
---|
| 212 |
|
---|
| 213 | # Your username at the ISP. This is the same as the first
|
---|
| 214 | # column in /etc/ppp/*-secrets:
|
---|
| 215 | user "<replaceable>jdoe</replaceable>"
|
---|
| 216 |
|
---|
| 217 | # remotename is not needed if you only have one ISP account and
|
---|
| 218 | # hence an asterisk in the second column in pap or chap-secrets:
|
---|
| 219 | # remotename "<replaceable>adsl</replaceable>"
|
---|
| 220 |
|
---|
| 221 | # If it's not working and you want pppd to be
|
---|
| 222 | # more verbose in /var/log/sys.log, add debug:
|
---|
| 223 | # debug
|
---|
| 224 |
|
---|
| 225 | # If you have a static IP address (eg, 12.34.56.78) you
|
---|
| 226 | # can specify it by following it with a colon:
|
---|
| 227 | # 12.34.56.78:
|
---|
| 228 |
|
---|
| 229 | # Otherwise accept whatever IP address the ISP gives you:
|
---|
| 230 | noipdefault
|
---|
[782820d] | 231 |
|
---|
[e3f388e5] | 232 | # The settings below usually don't need to be changed
|
---|
| 233 | noauth
|
---|
| 234 | hide-password
|
---|
| 235 | updetach
|
---|
| 236 | defaultroute
|
---|
| 237 | # create /etc/ppp/resolv.conf:
|
---|
| 238 | usepeerdns
|
---|
| 239 |
|
---|
| 240 | ### For more details (and more options)
|
---|
| 241 | ### read man pppd</literal>
|
---|
[782820d] | 242 | <userinput>EOF
|
---|
[e3f388e5] | 243 | chmod 600 /etc/ppp/peers/<replaceable>peername</replaceable></userinput></screen>
|
---|
| 244 | </sect4>
|
---|
| 245 |
|
---|
| 246 | <sect4>
|
---|
| 247 | <title>PPPoATM connections</title>
|
---|
| 248 |
|
---|
| 249 | <para>PPPoA connections are very similar to PPPoE, the main differences
|
---|
| 250 | are that you use the pppoatm.so plugin instead of rp-pppoe.so, you don't
|
---|
| 251 | specify the ethernet interface (it uses ppp0) and you need to VP/VC
|
---|
| 252 | numbers that are used by your ISP (there is a list of VP/VC numbers
|
---|
| 253 | <ulink url="http://www.linux-usb.org/SpeedTouch/faq/index.html#q12">here
|
---|
| 254 | </ulink>)</para>
|
---|
| 255 |
|
---|
| 256 | <screen role="root"><userinput>cat >/etc/ppp/peers/<replaceable>peername</replaceable> <<"EOF"</userinput>
|
---|
| 257 | <literal>plugin pppoatm.so
|
---|
| 258 |
|
---|
| 259 | # Your VP/VC numbers. eg, in Britain it is 0.38, in
|
---|
| 260 | # France they use 8.35. Google is your friend :)
|
---|
| 261 | 0.38
|
---|
| 262 |
|
---|
| 263 | # Your username at the ISP. This is the same as the
|
---|
| 264 | # first column in /etc/ppp/*-secrets:
|
---|
| 265 | user "<replaceable>jdoe</replaceable>"
|
---|
| 266 |
|
---|
| 267 | # remotename is not needed if you only have one ISP account and
|
---|
| 268 | # hence an asterisk in the second column in pap or chap-secrets:
|
---|
| 269 | # remotename "<replaceable>adsl</replaceable>"
|
---|
| 270 |
|
---|
| 271 | # If it's not working and you want pppd to be
|
---|
| 272 | # more verbose in /var/log/sys.log, add debug:
|
---|
| 273 | # debug
|
---|
| 274 |
|
---|
| 275 | # If you have a static IP address (eg, 12.34.56.78) you
|
---|
| 276 | # can specify it by following it with a colon:
|
---|
| 277 | # 12.34.56.78:
|
---|
| 278 |
|
---|
| 279 | # Otherwise accept whatever IP address the ISP gives you:
|
---|
| 280 | noipdefault
|
---|
| 281 |
|
---|
| 282 | # The settings below usually don't need to be changed
|
---|
| 283 | noauth
|
---|
| 284 | hide-password
|
---|
| 285 | updetach
|
---|
| 286 | defaultroute
|
---|
| 287 | # create /etc/ppp/resolv.conf:
|
---|
| 288 | usepeerdns
|
---|
| 289 |
|
---|
| 290 | ### For more details (and more options)
|
---|
| 291 | ### read man pppd</literal>
|
---|
| 292 | <userinput>EOF
|
---|
| 293 | chmod 600 /etc/ppp/peers/<replaceable>peername</replaceable></userinput></screen>
|
---|
| 294 |
|
---|
[782820d] | 295 | </sect4>
|
---|
| 296 |
|
---|
| 297 | <sect4>
|
---|
| 298 | <title>Dialup Modem Connection</title>
|
---|
[e3f388e5] | 299 |
|
---|
[782820d] | 300 | <!-- This section has been tested with various ISPs in Yekaterinburg,
|
---|
| 301 | Russia using Lucent WinModem. I cannot test it anymore, because
|
---|
| 302 | there is no free PCI slot for the modem in my new computer. However,
|
---|
| 303 | it is similar enough to GPRS for me to be sure that it still works,
|
---|
| 304 | and nobody complained about non-working dialup on the LFS LiveCD.
|
---|
| 305 | - Alexander E. Patrakov -->
|
---|
| 306 |
|
---|
| 307 | <para>Dialup connections are established with the help of a modem
|
---|
| 308 | connected to a computer and the telephone line. The modem dials a
|
---|
| 309 | telephone number of the ISP's modem, and they exchange data using
|
---|
| 310 | the signal frequencies 300-4000 Hz. Typical data transfer
|
---|
| 311 | rate is 40-50 kilobits per second, and the gateway ping time
|
---|
| 312 | (latency) is up to 300-400 ms. In order to configure the
|
---|
| 313 | dialup connection, it is required to know the telephone number of
|
---|
| 314 | the ISP's modem pool, the username and the password.</para>
|
---|
| 315 |
|
---|
| 316 | <para>In order to configure a dialup connection, two files have to
|
---|
| 317 | be created: a chat script that automates the connection procedure
|
---|
| 318 | (common for all dialup accounts), and a peer file that provides
|
---|
| 319 | configuration information about a specific connection to
|
---|
| 320 | <command>pppd</command>:</para>
|
---|
[ab8365a] | 321 | <screen role="root"><userinput>cat >/etc/ppp/dialup.chat <<"EOF"</userinput>
|
---|
[782820d] | 322 | <literal>ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE'
|
---|
| 323 | ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
|
---|
| 324 | ABORT ERROR ABORT BLACKLISTED
|
---|
| 325 |
|
---|
| 326 | TIMEOUT 5
|
---|
| 327 | '' AT
|
---|
| 328 | # \T is the phone number, passed from /etc/ppp/peers/<replaceable>dialup</replaceable>
|
---|
| 329 | OK-+++\dATH0-OK ATD\T
|
---|
| 330 | TIMEOUT 75
|
---|
| 331 | CONNECT \d\c</literal>
|
---|
| 332 | <userinput>EOF
|
---|
| 333 |
|
---|
| 334 | cat >/etc/ppp/peers/<replaceable>dialup</replaceable> <<"EOF"</userinput>
|
---|
| 335 | <literal># Your username at the ISP
|
---|
| 336 | user "<replaceable>jdoe</replaceable>"
|
---|
| 337 | # What should be in the second column in /etc/ppp/*-secrets
|
---|
| 338 | remotename "<replaceable>dialup</replaceable>"
|
---|
| 339 | # Replace <replaceable>TTTTTTT</replaceable> with the ISP phone number
|
---|
| 340 | connect "/usr/sbin/chat -T <replaceable>TTTTTTT</replaceable> -f /etc/ppp/dialup.chat"
|
---|
| 341 |
|
---|
| 342 | # Specify your modem serial port and speed below
|
---|
| 343 | <replaceable>/dev/ttyS0</replaceable>
|
---|
| 344 | <replaceable>115200</replaceable>
|
---|
| 345 |
|
---|
| 346 | # The settings below usually don't need to be changed
|
---|
| 347 | updetach
|
---|
| 348 | noauth
|
---|
| 349 | hide-password
|
---|
| 350 | debug
|
---|
| 351 | lock
|
---|
| 352 | defaultroute
|
---|
| 353 | noipdefault
|
---|
| 354 | usepeerdns</literal>
|
---|
| 355 | <userinput>EOF</userinput></screen>
|
---|
| 356 |
|
---|
| 357 | <para>The first three lines of the
|
---|
| 358 | <filename>/etc/ppp/dialup.chat</filename> file abort the script when
|
---|
| 359 | it receives an indication of an error from the modem. Then the timeout
|
---|
| 360 | is set to 5 seconds and the script checks that the modem responds to
|
---|
[8c9e2f6e] | 361 | the dummy AT command. If not, measures are taken to dewedge it
|
---|
[782820d] | 362 | (by interrupting the data transfer and going on hook). Then the
|
---|
| 363 | telephone number is dialed, and the script waits for the answer for
|
---|
| 364 | 75 seconds. The serial connection is considered established when the
|
---|
| 365 | modem sends the string CONNECT.</para>
|
---|
| 366 |
|
---|
| 367 | </sect4>
|
---|
| 368 |
|
---|
| 369 | <sect4>
|
---|
| 370 | <title>GPRS and EDGE Connections</title>
|
---|
[e3f388e5] | 371 |
|
---|
[782820d] | 372 | <!-- This section has been tested with GPRS service from MOTIV in
|
---|
| 373 | Yekaterinburg, Russia. According to forum messages, the procedure
|
---|
| 374 | also works with EDGE, but my cellular phone (Motorola C350) does not
|
---|
| 375 | support EDGE. - Alexander E. Patrakov -->
|
---|
| 376 |
|
---|
| 377 | <para>GPRS and EDGE connections are established with the help of a
|
---|
[8c9e2f6e] | 378 | cellular phone connected to a computer via serial, USB, or Bluetooth.
|
---|
[782820d] | 379 | The phone exchanges data packets with the nearest base station,
|
---|
| 380 | which can be up to 35 kilometers away.
|
---|
| 381 |
|
---|
| 382 | <!-- FIXME: watch for new standards! SkyLink is already offering
|
---|
| 383 | 3.1 megabits per second with CDMA mobile phones, and
|
---|
[ab8365a] | 384 | the configuration below doesn't work. It is reported that
|
---|
| 385 | a regular dialup setup with the telephone number "#777",
|
---|
| 386 | username "mobile" and password "internet" works with SkyLink. -->
|
---|
[782820d] | 387 |
|
---|
| 388 | The maximum possible data transfer rate is 170 kilobits per second
|
---|
| 389 | for GPRS and 474 kilobits per second for EDGE, but many cellular
|
---|
| 390 | operators impose lower limits, such as 64 kilobits per second. The
|
---|
| 391 | gateway ping time is 900 ms for GPRS, which makes playing many online
|
---|
| 392 | games impossible and causes connection to ICQ to be unreliable.
|
---|
| 393 | In order to configure a GPRS or EDGE connection,
|
---|
| 394 | it is required to know the access point name (APN) and, rarely, the
|
---|
| 395 | username and the password.
|
---|
| 396 | In most cases, billing is based on the telephone number, and the
|
---|
| 397 | username/password pair is not needed, as assumed in the example
|
---|
| 398 | below.</para>
|
---|
| 399 |
|
---|
| 400 | <para>In order to configure a GPRS connection, two files have to
|
---|
| 401 | be created: a chat script that automates the connection procedure
|
---|
| 402 | (common for all GPRS accounts), and a peer file that provides
|
---|
| 403 | configuration information about a specific connection to
|
---|
| 404 | <command>pppd</command>:</para>
|
---|
| 405 | <screen role="root"><userinput>cat >/etc/ppp/gprs.chat <<"EOF"</userinput>
|
---|
| 406 | <literal>ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE'
|
---|
| 407 | ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
|
---|
| 408 | ABORT ERROR ABORT BLACKLISTED
|
---|
| 409 |
|
---|
| 410 | TIMEOUT 5
|
---|
| 411 | '' AT
|
---|
| 412 | OK-+++\dATH0-OK ATZ
|
---|
| 413 | # \T is the APN, passed from /etc/ppp/peers/<replaceable>gprs</replaceable>
|
---|
| 414 | # This example stores the APN as profile #1 in the phone.
|
---|
[ab8365a] | 415 | # The "telephone number", *99***<profile_number>#, is always the same.
|
---|
[782820d] | 416 | # If you want to store this as profile #2, change 1 to 2 in the
|
---|
| 417 | # following two lines.
|
---|
| 418 | OK AT+CGDCONT=<replaceable>1</replaceable>,"IP","\T"
|
---|
| 419 | OK "ATD*99***<replaceable>1</replaceable>#"
|
---|
| 420 | CONNECT \d\c</literal>
|
---|
| 421 | <userinput>EOF
|
---|
| 422 |
|
---|
| 423 | cat >/etc/ppp/peers/<replaceable>gprs</replaceable> <<"EOF"</userinput>
|
---|
| 424 | <literal># Replace <replaceable>inet.example.com</replaceable> with the proper APN for your provider
|
---|
| 425 | connect "/usr/sbin/chat -T <replaceable>inet.example.com</replaceable> -f /etc/ppp/gprs.chat"
|
---|
| 426 |
|
---|
| 427 | # Specify your cellphone serial port and speed below
|
---|
| 428 | # Note: you must manually send some vendor-specific AT commands
|
---|
| 429 | # to certain old cellular phones (such as Sony-Ericsson T200)
|
---|
[8c9e2f6e] | 430 | # in order to achieve connection speed more than 9600 bits per second.
|
---|
[782820d] | 431 | <replaceable>/dev/ttyS1</replaceable>
|
---|
| 432 | <replaceable>115200</replaceable>
|
---|
| 433 |
|
---|
| 434 | # The settings below usually don't need to be changed
|
---|
| 435 | noccp
|
---|
| 436 | noauth
|
---|
| 437 | updetach
|
---|
| 438 | debug
|
---|
| 439 | lock
|
---|
| 440 | defaultroute
|
---|
| 441 | noipdefault
|
---|
| 442 | usepeerdns</literal>
|
---|
| 443 | <userinput>EOF</userinput></screen>
|
---|
| 444 | </sect4>
|
---|
| 445 |
|
---|
[ab8365a] | 446 | <sect4>
|
---|
| 447 | <title>Establishing the connection manually</title>
|
---|
[782820d] | 448 |
|
---|
| 449 | <para>In order to establish a PPP connection described by the
|
---|
| 450 | <filename>/etc/ppp/peers/<replaceable>peername</replaceable></filename>
|
---|
[a41f643] | 451 | file run (as <systemitem class="username">root</systemitem> or as a member
|
---|
[8c9e2f6e] | 452 | of the <systemitem class="groupname">pppusers</systemitem> group):</para>
|
---|
[e3f388e5] | 453 | <screen><userinput>pppd call <replaceable>peername</replaceable></userinput></screen>
|
---|
[782820d] | 454 |
|
---|
[e3f388e5] | 455 | <para>In order to stop the connection, run:</para>
|
---|
| 456 | <screen><userinput>killall pppd</userinput></screen>
|
---|
[782820d] | 457 |
|
---|
[e3f388e5] | 458 | <!-- There are an infinite number of ways that computers can be
|
---|
| 459 | connected together. Trying to write a bootscript that can cope with every
|
---|
| 460 | possible network configuration is the road to madness. Andrew Benton -->
|
---|
[ab8365a] | 461 |
|
---|
[e3f388e5] | 462 | <para>Writing a bootscript that brings up the connection during the boot
|
---|
| 463 | process is left as an exercise for the reader ;)</para>
|
---|
[ab8365a] | 464 |
|
---|
[782820d] | 465 | </sect4>
|
---|
[e3f388e5] | 466 |
|
---|
[c99aa38] | 467 | </sect3>
|
---|
[4839c17] | 468 |
|
---|
[c99aa38] | 469 | </sect2>
|
---|
| 470 | <sect2 role="content">
|
---|
| 471 | <title>Contents</title>
|
---|
| 472 |
|
---|
| 473 | <segmentedlist>
|
---|
| 474 | <segtitle>Installed Programs</segtitle>
|
---|
| 475 | <segtitle>Installed Libraries</segtitle>
|
---|
| 476 | <segtitle>Installed Directories</segtitle>
|
---|
[4839c17] | 477 |
|
---|
[c99aa38] | 478 | <seglistitem>
|
---|
[9a9f297] | 479 | <seg>chat, pppd, pppdump, pppoe-discovery and pppstats</seg>
|
---|
[893d9711] | 480 | <seg>Several plugin modules installed in
|
---|
[782820d] | 481 | <filename class='directory'>/usr/lib/pppd/&ppp-version;</filename></seg>
|
---|
[c99aa38] | 482 | <seg>/etc/ppp, /usr/include/pppd and /usr/lib/pppd</seg>
|
---|
| 483 | </seglistitem>
|
---|
| 484 | </segmentedlist>
|
---|
[4839c17] | 485 |
|
---|
[c99aa38] | 486 | <variablelist>
|
---|
| 487 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 488 | <?dbfo list-presentation="list"?>
|
---|
| 489 | <?dbhtml list-presentation="table"?>
|
---|
[4839c17] | 490 |
|
---|
[c99aa38] | 491 | <varlistentry id="chat">
|
---|
| 492 | <term><command>chat</command></term>
|
---|
| 493 | <listitem>
|
---|
[893d9711] | 494 | <para>defines a conversational exchange between the computer and the
|
---|
| 495 | modem. Its primary purpose is to establish the connection between the
|
---|
[919683dc] | 496 | Point-to-Point Protocol Daemon (PPPD) and the remote
|
---|
[c99aa38] | 497 | <command>pppd</command> process.</para>
|
---|
| 498 | <indexterm zone="ppp chat">
|
---|
| 499 | <primary sortas="b-chat">chat</primary>
|
---|
| 500 | </indexterm>
|
---|
| 501 | </listitem>
|
---|
| 502 | </varlistentry>
|
---|
[4839c17] | 503 |
|
---|
[c99aa38] | 504 | <varlistentry id="pppd">
|
---|
| 505 | <term><command>pppd</command></term>
|
---|
| 506 | <listitem>
|
---|
| 507 | <para>is the Point to Point Protocol daemon.</para>
|
---|
| 508 | <indexterm zone="ppp pppd">
|
---|
| 509 | <primary sortas="b-pppd">pppd</primary>
|
---|
| 510 | </indexterm>
|
---|
| 511 | </listitem>
|
---|
| 512 | </varlistentry>
|
---|
[4839c17] | 513 |
|
---|
[c99aa38] | 514 | <varlistentry id="pppdump">
|
---|
| 515 | <term><command>pppdump</command></term>
|
---|
| 516 | <listitem>
|
---|
[893d9711] | 517 | <para>is used to convert
|
---|
| 518 | <application>PPP</application> record files to a readable
|
---|
[c99aa38] | 519 | format.</para>
|
---|
| 520 | <indexterm zone="ppp pppdump">
|
---|
| 521 | <primary sortas="b-pppdump">pppdump</primary>
|
---|
| 522 | </indexterm>
|
---|
| 523 | </listitem>
|
---|
| 524 | </varlistentry>
|
---|
[4839c17] | 525 |
|
---|
[9a9f297] | 526 | <varlistentry id="pppoe-discovery">
|
---|
| 527 | <term><command>pppoe-discovery</command></term>
|
---|
| 528 | <listitem>
|
---|
| 529 | <para>performs the same discovery process as the pppoe plugin, but
|
---|
| 530 | does not initiate a <application>PPP</application> session.</para>
|
---|
| 531 | <indexterm zone="ppp pppoe-discovery">
|
---|
| 532 | <primary sortas="b-pppoe-discovery">pppoe-discovery</primary>
|
---|
| 533 | </indexterm>
|
---|
| 534 | </listitem>
|
---|
| 535 | </varlistentry>
|
---|
| 536 |
|
---|
[c99aa38] | 537 | <varlistentry id="pppstats">
|
---|
| 538 | <term><command>pppstats</command></term>
|
---|
| 539 | <listitem>
|
---|
[893d9711] | 540 | <para>is used to print
|
---|
[c99aa38] | 541 | <application>PPP</application> statistics.</para>
|
---|
| 542 | <indexterm zone="ppp pppstats">
|
---|
| 543 | <primary sortas="b-pppstats">pppstats</primary>
|
---|
| 544 | </indexterm>
|
---|
| 545 | </listitem>
|
---|
| 546 | </varlistentry>
|
---|
[4839c17] | 547 |
|
---|
[c99aa38] | 548 | </variablelist>
|
---|
| 549 |
|
---|
| 550 | </sect2>
|
---|
[f45b1953] | 551 |
|
---|
| 552 | </sect1>
|
---|