old-www/HOWTO/PPP-HOWTO/x582.html

209 lines
3.1 KiB
HTML

<HTML
><HEAD
><TITLE
>Maintaining a permanent connection to the net with pppd.</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
REL="HOME"
TITLE="Linux PPP HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Overview of what has to be done to get PPP working as a client"
HREF="c463.html"><LINK
REL="PREVIOUS"
TITLE="Problems with standard IP services on a Dynamic IP number PPP link"
HREF="x577.html"><LINK
REL="NEXT"
TITLE="Configuring your Linux Kernel"
HREF="kernel-configuration.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><A
HREF="http://www.linuxports.com/howto/ppp"
TARGET="_top"
>Linux PPP HOWTO</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x577.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 9. Overview of what has to be done to get PPP working as a client</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="kernel-configuration.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN582"
>9.15. Maintaining a permanent connection to the net with <I
CLASS="EMPHASIS"
>pppd</I
>.</A
></H1
><P
>If you are fortunate enough to have a semi permanent connection to the net and
would like to have your machine automatically redial your PPP connection if it
is lost then here is a simple trick to do so.</P
><P
>Configure PPP such that it can be started by the <TT
CLASS="LITERAL"
>root</TT
> user by issuing the
command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># pppd</PRE
></TD
></TR
></TABLE
>
<I
CLASS="EMPHASIS"
>Be sure</I
> that you have the `<TT
CLASS="LITERAL"
>-detach</TT
>' option configured in your
<TT
CLASS="LITERAL"
>/etc/ppp/options</TT
> file. Then, insert the following line into your
<TT
CLASS="LITERAL"
>/etc/inittab</TT
> file, down with the <I
CLASS="EMPHASIS"
>getty</I
> definitions:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>pd:23:respawn:/usr/sbin/pppd</PRE
></TD
></TR
></TABLE
>
This will cause the <I
CLASS="EMPHASIS"
>init</I
> program to spawn and monitor the
<I
CLASS="EMPHASIS"
>pppd</I
>
program and automatically restart it if it dies.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x577.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="kernel-configuration.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Problems with standard IP services on a Dynamic IP number PPP link</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c463.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Configuring your Linux Kernel</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>