I have all of them except for CONFIG_N_HDLC. Can someone tell me where I can 
find this option? I'm building kernel 2.6.11.12.

Device Drivers --->
Character devices --->
[*] Non-standard serial port support
[*] HDLC line discipline support

Thanks, Andy.

I followed the instruction in the doc/KERNEL-MODE-PPPOE file in rp-pppoe 3.8 package and managed to connect to my ISP. How can I check if I am using kernel-mode or user-mode PPPoE?

Here's what I did:

0) Make sure you are running kernel 2.4.x on the machine you will build
rp-pppoe on.  You must have the following kernel configuration settings:

CONFIG_PPP=m          or CONFIG_PPP=y
CONFIG_PPP_ASYNC=m    or CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=m or CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=m  or CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=m  or CONFIG_PPP_BSDCOMP=y
CONFIG_PPPOE=m        or CONFIG_PPPOE=y
CONFIG_N_HDLC=m       or CONFIG_N_HDLC=y        # I have all the other options 
except for this one
CONFIG_UNIX98_PTYS=y

You also need a /dev/ppp file:

mknod --mode=664 /dev/ppp c 108 0    # this file exists with permission 
crw-rw---- and is owned by user root, group root.

You might want to add these lines to /etc/modules.conf ( I did not add these, 
since the kernel does not use modules):

alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-13 n_hdlc
alias tty-ldisc-14 ppp_synctty
alias net-pf-24 pppoe

1) If you are running pppd older than 2.4.0, check out the latest
version of the PPP software from the CVS repository at cvs.samba.org.
Here's how to do this:
# I am running pppd 2.4.3, so I skipped this step
cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot login
# When prompted for a password, type "cvs"

# Change to the directory in which you want to store the PPP source
# code.
cd /path/to/checked/out/sources

# Check out the source
cvs -z5 -d :pserver:[EMAIL PROTECTED]:/cvsroot co ppp

If you are running pppd 2.4.0 or newer, and have the pppd development
headers installed, you can skip steps 1 and 2.
# I skipped step 2, too.

2) The source gets checked out into a subdirectory called ppp.  If
the source ends up in /path/to/checked/out/sources/ppp, then call
that path $PPPDIR.

Build and install the checked-out ppp code according to its instructions.

3) Unpack rp-pppoe.

4) In the rp-pppoe directory, change to src/ and type:

./configure --enable-plugin=$PPPDIR
# I issued the command that follows instead

where $PPPDIR, of course, refers to the checked-out "ppp" directory
from cvs.samba.org.

If you didn't check out the PPP software from cvs.samba.org, use:

./configure --enable-plugin

4) Type make; make install
# done

5) Edit /etc/ppp/pppoe.conf to include this line:
LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
#done after issuing pppoe-setup

After that, pppoe-start should use kernel-mode PPPoE.
# yes, pppoe-start did connect to my ISP and I manged to ping a host on the 
Internet by IP addres

How can I be usre that I'm using kernel-mode PPPoE in this case?

--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to