[3cfb81c] | 1 | <sect2>
|
---|
[f07203c5] | 2 | <title>Configuring <application><acronym>RP</acronym>-<acronym>PPPoE</acronym></application></title>
|
---|
[3cfb81c] | 3 |
|
---|
| 4 | <sect3><title>Config files</title>
|
---|
[9d3e4bf] | 5 | <para><filename>/etc/ppp/pppoe.conf</filename>,
|
---|
| 6 | <filename>/etc/ppp/firewall-standalone</filename>,
|
---|
| 7 | <filename>/etc/ppp/firewall-masq</filename>,
|
---|
| 8 | <filename>/etc/ppp/pppoe-server-options</filename>,
|
---|
| 9 | <filename>/etc/resolv.conf</filename>,
|
---|
| 10 | <filename>/etc/ppp/pap-seecrets</filename>,
|
---|
| 11 | <filename>/etc/ppp/chap-secrets</filename></para></sect3>
|
---|
[3cfb81c] | 12 |
|
---|
| 13 | <sect3><title>Configuration Information</title>
|
---|
| 14 |
|
---|
[f07203c5] | 15 | <para>To configure <application><acronym>RP</acronym>-<acronym>PPPoE</acronym>
|
---|
| 16 | </application> after installation, you should run the <command>adsl-setup
|
---|
| 17 | </command> script.</para>
|
---|
[a1a2c99] | 18 |
|
---|
| 19 | <para>When configuring your connection, you will need to have your
|
---|
[9d3e4bf] | 20 | <acronym>ISP</acronym>'s nameserver information available, as well as your
|
---|
| 21 | username and password. You will also be asked whether to configure a
|
---|
| 22 | dial-on-demand or a constant connection. If your service provider does not
|
---|
| 23 | charge by the minute, it is usually good to have a bootscript handle the
|
---|
[e76c814] | 24 | connection for you. You can, of course, choose not to install the
|
---|
[a1a2c99] | 25 | following script, and start your connection manually with the
|
---|
[9d3e4bf] | 26 | <command>adsl-start</command> script.</para>
|
---|
[a1a2c99] | 27 |
|
---|
| 28 | <para>Use the following commands to create the
|
---|
| 29 | <emphasis>optional</emphasis> <filename>adsl</filename> bootscript:</para>
|
---|
| 30 |
|
---|
[9d3e4bf] | 31 | <screen><userinput><command>cat > /etc/rc.d/init.d/adsl << "EOF"</command>
|
---|
[369af35a] | 32 | #!/bin/sh
|
---|
[a1a2c99] | 33 | # Begin $rc_base/init.d/adsl
|
---|
| 34 |
|
---|
| 35 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
| 36 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
| 37 | # adsl script written by DJ Lucas - dj@lucasit.com
|
---|
| 38 |
|
---|
[369af35a] | 39 | . /etc/sysconfig/rc
|
---|
| 40 | . $rc_functions
|
---|
[a1a2c99] | 41 |
|
---|
| 42 | case "$1" in
|
---|
| 43 | start)
|
---|
| 44 | echo "Bringing up the ADSL interface..."
|
---|
| 45 | /usr/sbin/adsl-start
|
---|
| 46 | evaluate_retval
|
---|
| 47 | ;;
|
---|
| 48 |
|
---|
| 49 | stop)
|
---|
| 50 | echo "Bringing down the ADSL interface..."
|
---|
| 51 | /usr/sbin/adsl-stop
|
---|
| 52 | evaluate_retval
|
---|
| 53 | ;;
|
---|
| 54 |
|
---|
| 55 | restart)
|
---|
| 56 | $0 stop
|
---|
| 57 | sleep 1
|
---|
| 58 | $0 start
|
---|
| 59 | ;;
|
---|
| 60 |
|
---|
| 61 | status)
|
---|
| 62 | /usr/sbin/adsl-status
|
---|
| 63 | ;;
|
---|
| 64 |
|
---|
| 65 | *)
|
---|
| 66 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
| 67 | exit 1
|
---|
| 68 | ;;
|
---|
| 69 | esac
|
---|
| 70 |
|
---|
| 71 | # End $rc_base/init.d/adsl
|
---|
[9d3e4bf] | 72 | <command>EOF
|
---|
| 73 | chmod 755 /etc/rc.d/init.d/adsl</command></userinput></screen>
|
---|
[a1a2c99] | 74 |
|
---|
[a75063d4] | 75 | <para>Now create the necessary symlinks:</para>
|
---|
[9d3e4bf] | 76 | <screen><userinput><command>ln -sf ../init.d/adsl /etc/rc.d/rc0.d/K49adsl &&
|
---|
[a1a2c99] | 77 | ln -sf ../init.d/adsl /etc/rc.d/rc1.d/K49adsl &&
|
---|
| 78 | ln -sf ../init.d/adsl /etc/rc.d/rc2.d/K49adsl &&
|
---|
| 79 | ln -sf ../init.d/adsl /etc/rc.d/rc3.d/S24adsl &&
|
---|
| 80 | ln -sf ../init.d/adsl /etc/rc.d/rc4.d/S24adsl &&
|
---|
| 81 | ln -sf ../init.d/adsl /etc/rc.d/rc5.d/S24adsl &&
|
---|
[a75063d4] | 82 | ln -sf ../init.d/adsl /etc/rc.d/rc6.d/K49adsl</command></userinput></screen>
|
---|
[3cfb81c] | 83 |
|
---|
[06435ff] | 84 | <para>Also, If you had previously configured the network interface that will now
|
---|
| 85 | use <acronym>PPPoE</acronym>, you should remove the interface configuration
|
---|
| 86 | files for that interface:
|
---|
| 87 | <filename>/etc/sysconfig/network-devices/if{up,down,config}-ehtx
|
---|
| 88 | </filename>.</para>
|
---|
| 89 |
|
---|
[3cfb81c] | 90 | </sect3>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|