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

184 lines
3.0 KiB
HTML

<HTML
><HEAD
><TITLE
>The pppd debug and file option_file options</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="Automating your connections - Creating the connection scripts"
HREF="automate.html"><LINK
REL="PREVIOUS"
TITLE="A chat script for PAP/CHAP authenticated connections"
HREF="x1285.html"><LINK
REL="NEXT"
TITLE="Testing your connection script"
HREF="c1303.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="x1285.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 18. Automating your connections - Creating the connection scripts</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="c1303.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN1290"
>18.6. The pppd <TT
CLASS="LITERAL"
>debug</TT
> and <TT
CLASS="LITERAL"
>file option_file</TT
> options</A
></H1
><P
>As we have already seen, you can turn on debug information logging
with the -d option to pppd. The 'debug' option is equivalent to this.</P
><P
>As we are establishing a new connection with a new script, leave in the
debug option for now. (Warning: if your disk space is tight, logging
pppd exchanges can rapidly extend your syslog file and run you into
trouble - but to do this you must fail to connect and keep on trying for
quite a few minutes).</P
><P
>Once you are happy that all is working properly, then you can remove
this option.</P
><P
>If you have called your ppp options file anything other than
<TT
CLASS="LITERAL"
>/etc/ppp/options</TT
> or <TT
CLASS="LITERAL"
>/etc/ppp/options.ttySx</TT
>, specify
the file name with the <TT
CLASS="LITERAL"
>file</TT
> option to pppd - e.g.</P
><P
>&#13;<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>exec /usr/sbin/pppd debug file options.myserver /dev/ttyS0 38400 \</PRE
></TD
></TR
></TABLE
>&#13;</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="x1285.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="c1303.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>A chat script for PAP/CHAP authenticated connections</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="automate.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Testing your connection script</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>