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