Typo
[linux_from_scratch_hints.git] / OLD / pppoe.txt
blob021f8655ec9f4809cea7c4ffd34fb1fcbdd69730
1 TITLE:          PPPOE
2 LFS VERSION:    3.0pre4
3 AUTHOR:         Chris Lynn <roryo@roryo.dynup.net>
5 SYNOPSIS:
6         It's the configuring of your LFS thats the tricky bit.  ;)
8 HINT:
9 Well, you've got your brand-spanking new LFS, now you want to connect your
10 nice dsl / adsl connection to it.  You are going to need the following :
12         http://www.roaringpenguin.com/pppoe/ppp-2.4.1-pppoe2.tgz
13         http://www.roaringpenguin.com/pppoe/rp-pppoe-3.2.tar.gz
15 You are also going to need a kernel above 2.4.2.  There were some issues
16 with pppoe and 2.4.2. kernel.  I'm currently using 2.4.7 and its screaming
17 along. The latest kernel can be found at ftp.kernel.org or your local
18 mirror.
20 Installing the kernel.
22         cd /usr/src &&
23         mkdir linux-2.4.7 &&
24         mv linux linux-2.4.6 &&
25         ln -s linux-2.4.7 linux &&
26         tar yxvf linux-2.4.7.tar.bz2 &&
27         cd linux &&
28         make mrproper &&
29         make menuconfig
31 You will have to replace linux-2.4.6 with the version of your current
32 kernel.
34 You will have to enable the following in your kernel configuration:
36         Code maturity level options -->
37                 [*] Prompt for development and/or incomplete code/drivers
39         General setup -->
40                 [*] Networking support
42         Network options -->
43                 <*> Packet socket
44                 [*]    Packet socket: mmaped IO
45                 ........
46                 [*] TCP/IP networking
48         Network device support -->
49                 [*] Network device support
50                 ........
51                 <*> PPP (point-tp-point protocol) support
52                 [ ]    PPP Multilink support (EXPERIMENTAL)
53                 <M>    PPP support for async serial ports
54                 <M>    PPP support for sync tty ports
55                 <M>    PPP Deflate compression
56                 <M>    PPP SD_Compress compression
57                 < >    PPP over ethernet (EXPERIMENTAL)
59 You will notice that we leave pppoe out of the kernel modules, this is due
60 to the fact that we cannot debug later if we use the kernel driver. Not
61 that you will need to debug.  ;)
63         File systems -->
64                 ........
65                 [*]  /dev/pts file system for Unix98 PTYs
67 Now there are a LOT of options that u need to have a proper kernel, these
68 are just those required to get your pppoe running. Next :
70         make dep &&
71         make bzImage &&
72         make modules &&
73         make modules_install &&
74         cp arch/i386/boot/bzImage /boot/lfskernel
76 Make sure that you lilo after all that.  Now comes the real work:
79 PPPD :-
81         cd /usr/src &&
82         tar zxvf ppp-2.4.0-pppoe4.tgz &&
83         cd ppp-2.4.0.pppoe4 &&
84         ./confiure &&
85         make &&
86         make install
88 Then to do some configuring :
90         echo "plugin /usr/lib/pppd/2.4.1/pppoe.so" > /etc/ppp/options
92         cat >> /etc/modules.conf << "EOF"
93         alias /dev/ppp          ppp_generic
94         alias char-major-108    ppp_generic
95         alias tty-ldisk-3       ppp_async
96         alias tty-ldisk-14      ppp_synctty
97         alias ppp-compress-21   bsd_comp
98         alias ppp-compress-24   ppp_deflate
99         alias ppp-compress-26   ppp_deflate
100         EOF
102 RP-pppoe :-
104         cd /usr/src &&
105         tar zxvf rp-pppoe-3.2.tar.gz &&
106         cd rp-pppoe-3.2 &&
107         ./go
109 Roaring penguin will auto-magically do everything for you, well almost,
110 you'll have to answer some questions for it.  Now before you adsl-start
111 there are two more things we need to do.
113 Lets add the following to /etc/fstab:
115         none /dev/pts devpts guid=4,mode620 0 0
117 And that should be it!  Time for a reboot to get then kernel installed.
119 OK, now that you've got your new kernel up and running you should try:
121 adsl-start
123 If you get the ...Connected! then your in business.  8-)  If not then you
124 are going to have to read the rp-pppoe docs and do some debuggin, now you
125 see why i didn't use the experimental kernel driver.
127 I hope you enjoy you LFS with xDSL installed!
129 A big thanks go to all the guys on #lfs for all their help.