man-pages/man1/pon.1.html
2021-03-31 01:06:50 +01:00

218 lines
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PON</TITLE>
</HEAD><BODY>
<H1>PON</H1>
Section: Debian PPPD (1)<BR>Updated: July 2000<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pon, poff, plog - starts up, shuts down or lists the log of PPP connections
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>pon</B>
[ isp-name [ options ] ]
<BR>
<B>poff</B>
[ -r ] [ -d ] [ -c ] [ -a ] [ -h ] [ isp-name ]
<BR>
<B>plog</B>
[ arguments ]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
This manual page describes the <B>pon</B>, <B>plog</B> and <B>poff</B>
scripts, which allow users to control PPP connections.
<P>
<A NAME="lbAE">&nbsp;</A>
<H3>pon</H3>
<B>pon</B>, invoked without arguments, runs the <I>/etc/ppp/ppp_on_boot</I>
file, if it exists and is executable. Otherwise, a PPP connection will be
started using configuration from <I>/etc/ppp/peers/provider</I>.
This is the default behaviour unless an <B>isp-name</B> argument is given.
<P>
For instance, to use ISP configuration &quot;myisp&quot; run:
<DL COMPACT>
<DT id="1"><DD>
pon myisp
</DL>
<P>
<B>pon</B> will then use the options file <I>/etc/ppp/peers/myisp</I>.
You can pass additional <B>pppd options</B> after the ISP name, too.
<B>pon</B> can be used to run multiple, simultaneous PPP connections.
<P>
<B>pon</B> takes the following command line options:
<DL COMPACT><DT id="2"><DD>
<DL COMPACT>
<DT id="3"><B>-q --quick</B>
<DD>
disconnect when ip-up finishes running.
This function is only available to the <I>root</I> user.
</DL>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H3>poff</H3>
<B>poff</B> closes a PPP connection. If more than one PPP connection exists,
the one named in the argument to <B>poff</B> will be killed, e.g.
<DL COMPACT>
<DT id="4"><DD>
poff myprovider2
</DL>
<P>
will terminate the connection to myprovider2, and leave the PPP connections
to e.g. &quot;myprovider1&quot; or &quot;myprovider3&quot; up and running.
<P>
<B>poff</B> takes the following command line options:
<DL COMPACT><DT id="5"><DD>
<DL COMPACT>
<DT id="6"><B>-r</B>
<DD>
causes the connection to be redialed after it is dropped.
<DT id="7"><B>-d</B>
<DD>
toggles the state of pppd's debug option.
<DT id="8"><B>-c</B>
<DD>
causes
<B><A HREF="/cgi-bin/man/man2html?8+pppd">pppd</A></B>(8)
to renegotiate compression.
<DT id="9"><B>-a</B>
<DD>
stops all running ppp connections. If the argument <B>isp-name</B>
is given it will be ignored.
<DT id="10"><B>-h</B>
<DD>
displays help information.
<DT id="11"><B>-v</B>
<DD>
prints the version and exits.
</DL>
<P>
If no argument is given, <B>poff</B> will stop or signal pppd if and only
if there is exactly one running. If more than one connection is active,
it will exit with an error code of 1.
<P>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H3>plog</H3>
<B>plog</B> shows you the last few lines of <I>/var/log/ppp.log</I>. If that
file doesn't exist, it shows you the last few lines of your
<I>/var/log/syslog</I> file, but excluding the lines not generated by pppd.
This script makes use of the
<B><A HREF="/cgi-bin/man/man2html?1+tail">tail</A></B>(1)
command, so arguments that can be passed to
<B><A HREF="/cgi-bin/man/man2html?1+tail">tail</A></B>(1)
can also be passed to <B>plog</B>.
<P>
Note: the <B>plog</B> script can only be used by root or another system
administrator in group &quot;adm&quot;, due to security reasons. Also, to have all
pppd-generated information in one logfile, that plog can show, you need the
following line in your <I>/etc/syslog.conf</I> file:
<P>
local2.*<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT>-/var/log/ppp.log<BR>
<A NAME="lbAH">&nbsp;</A>
<H2>FILES</H2>
<DL COMPACT>
<DT id="12"><I>/etc/ppp/options</I>
<DD>
PPPd system options file.
<DT id="13"><I>/etc/ppp/pap-secrets</I>
<DD>
System PAP passwords file.
<DT id="14"><I>/etc/ppp/chap-secrets</I>
<DD>
System CHAP passwords file.
<DT id="15"><I>/etc/ppp/peers/</I>
<DD>
Directory holding the peer options files. The default file is called
<I>provider</I>.
<DT id="16"><I>/etc/chatscripts/provider</I>
<DD>
The chat script invoked from the default <I>/etc/ppp/peers/provider</I>.
<DT id="17"><I>/var/log/ppp.log</I>
<DD>
The default PPP log file.
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>AUTHORS</H2>
The p-commands were written by Christoph Lameter &lt;<A HREF="mailto:clameter@debian.org">clameter@debian.org</A>&gt;.
Updated and revised by Philip Hands &lt;<A HREF="mailto:phil@hands.com">phil@hands.com</A>&gt;.
<BR>
This manual was written by Othmar Pasteka &lt;<A HREF="mailto:othmar@tron.at">othmar@tron.at</A>&gt;. Modified
by Rob Levin &lt;<A HREF="mailto:lilo@openprojects.net">lilo@openprojects.net</A>&gt;, with some extensions taken from
the old p-commands manual written by John Hasler &lt;<A HREF="mailto:jhasler@debian.org">jhasler@debian.org</A>&gt;.
<A NAME="lbAJ">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+pppd">pppd</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+chat">chat</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?1+tail">tail</A></B>(1).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="18"><A HREF="#lbAB">NAME</A><DD>
<DT id="19"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="20"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DL>
<DT id="21"><A HREF="#lbAE">pon</A><DD>
<DT id="22"><A HREF="#lbAF">poff</A><DD>
<DT id="23"><A HREF="#lbAG">plog</A><DD>
</DL>
<DT id="24"><A HREF="#lbAH">FILES</A><DD>
<DT id="25"><A HREF="#lbAI">AUTHORS</A><DD>
<DT id="26"><A HREF="#lbAJ">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:24 GMT, March 31, 2021
</BODY>
</HTML>