1 | <sect2>
|
---|
2 | <title>Configuring <application><acronym>RP</acronym>-<acronym>PPPoE</acronym></application></title>
|
---|
3 |
|
---|
4 | <sect3><title>Config files</title>
|
---|
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>
|
---|
12 |
|
---|
13 | <sect3><title>Configuration Information</title>
|
---|
14 |
|
---|
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>
|
---|
18 |
|
---|
19 | <para>When configuring your connection, you will need to have your
|
---|
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
|
---|
24 | connection for you. You can, of course, choose not to install the
|
---|
25 | following script, and start your connection manually with the
|
---|
26 | <command>adsl-start</command> script.</para>
|
---|
27 |
|
---|
28 | <para>Use the following commands to create the
|
---|
29 | <emphasis>optional</emphasis> <filename>adsl</filename> bootscript:</para>
|
---|
30 |
|
---|
31 | <screen><userinput><command>cat > /etc/rc.d/init.d/adsl << "EOF"</command>
|
---|
32 | #!/bin/sh
|
---|
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 |
|
---|
39 | . /etc/sysconfig/rc
|
---|
40 | . $rc_functions
|
---|
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
|
---|
72 | <command>EOF
|
---|
73 | chmod 755 /etc/rc.d/init.d/adsl</command></userinput></screen>
|
---|
74 |
|
---|
75 | <para>Now create the necessary symlinks:</para>
|
---|
76 | <screen><userinput><command>ln -sf ../init.d/adsl /etc/rc.d/rc0.d/K49adsl &&
|
---|
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 &&
|
---|
82 | ln -sf ../init.d/adsl /etc/rc.d/rc6.d/K49adsl</command></userinput></screen>
|
---|
83 |
|
---|
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 |
|
---|
90 | </sect3>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|