glfs/connect/other/pppoe/pppoe-config.xml
Larry Lawrence a75063d4ec seperating para and screen sections
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1223 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-09-27 18:46:10 +00:00

88 lines
2.9 KiB
XML

<sect2>
<title>Configuring <application><acronym>RP</acronym>-<acronym>PPPoE</acronym></application></title>
<sect3><title>Config files</title>
<para><filename>/etc/ppp/pppoe.conf</filename>,
<filename>/etc/ppp/firewall-standalone</filename>,
<filename>/etc/ppp/firewall-masq</filename>,
<filename>/etc/ppp/pppoe-server-options</filename>,
<filename>/etc/resolv.conf</filename>,
<filename>/etc/ppp/pap-seecrets</filename>,
<filename>/etc/ppp/chap-secrets</filename></para></sect3>
<sect3><title>Configuration Information</title>
<para>To configure <application><acronym>RP</acronym>-<acronym>PPPoE</acronym>
</application> after installation, you should run the <command>adsl-setup
</command> script.</para>
<para>When configuring your connection, you will need to have your
<acronym>ISP</acronym>'s nameserver information available, as well as your
username and password. You will also be asked whether to configure a
dial-on-demand or a constant connection. If your service provider does not
charge by the minute, it is usually good to have a bootscript handle the
connection for you. You can, of course, choose not to install the
following script, and start your connection manually with the
<command>adsl-start</command> script.</para>
<para>Use the following commands to create the
<emphasis>optional</emphasis> <filename>adsl</filename> bootscript:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/adsl &lt;&lt; "EOF"</command>
#!/bin/bash
# Begin $rc_base/init.d/adsl
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
# adsl script written by DJ Lucas - dj@lucasit.com
source /etc/sysconfig/rc
source $rc_functions
case "$1" in
start)
echo "Bringing up the ADSL interface..."
/usr/sbin/adsl-start
evaluate_retval
;;
stop)
echo "Bringing down the ADSL interface..."
/usr/sbin/adsl-stop
evaluate_retval
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
/usr/sbin/adsl-status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/adsl
<command>EOF
chmod 755 /etc/rc.d/init.d/adsl</command></userinput></screen>
<para>Now create the necessary symlinks:</para>
<screen><userinput><command>ln -sf ../init.d/adsl /etc/rc.d/rc0.d/K49adsl &amp;&amp;
ln -sf ../init.d/adsl /etc/rc.d/rc1.d/K49adsl &amp;&amp;
ln -sf ../init.d/adsl /etc/rc.d/rc2.d/K49adsl &amp;&amp;
ln -sf ../init.d/adsl /etc/rc.d/rc3.d/S24adsl &amp;&amp;
ln -sf ../init.d/adsl /etc/rc.d/rc4.d/S24adsl &amp;&amp;
ln -sf ../init.d/adsl /etc/rc.d/rc5.d/S24adsl &amp;&amp;
ln -sf ../init.d/adsl /etc/rc.d/rc6.d/K49adsl</command></userinput></screen>
</sect3>
</sect2>