Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] pppoe doesn't work ("not supported by kernel")
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Sat Aug 11, 2007 4:27 pm    Post subject: [SOLVED] pppoe doesn't work ("not supported by kernel&q Reply with quote

i installed gentoo 2007.0 with the 2.6.21-r4 kernel yesterday and i now pppoe doesn't want to work. first i tried it through pppoe-start. it tries till timeout and doesn't work. ifconfig just shows lo. and so does ifconfig from the installation cd, but after pppoe-start everything works perfektly and ifconfig shows lo, eth0 and ppp0. i looked up dmesg |grep eth0, here's the one from my new installed gentoo:
Code:
eth0: RTL8169sc/8110sc at 0xffffc20000016800, 00:50:8d:c3:d9:3e, IRQ 21
r8169: eth0: link up
eth0: no IPv6 routers present

here's the one from the installation cd:
Code:
eth0: RTL8169sc/8110sc at 0xffffc2000003c800, 00:50:8d:c3:d9:3e, IRQ 21
eth0: RTL8169sc/8110sc at 0xffffc2000003c800, 00:50:8d:c3:d9:3e, IRQ 21
r8169: eth0: link up

then i found a recommendation (for a similar case) to install hotplug and coldplug and add it to runlevel default and tried it out. coldplug refuses to install because of udev, hotplug lets install itself, but then pppoe-start refuses to start at all.
then i found a recommendation, how to set up a pppoe-connection without rp-pppoe. i added following to /etc/conf.d/net:
Code:
config_ppp0=( "ppp" )
link_ppp0=( "eth0" )
plugins_ppp0=( "pppoe" )
username_ppp0=( "username" )
password_ppp0=( "password" )
pppd_ppp0=(
   "updetach"
   "defaultroute"
   "usepeerdns"
   )

then i entered
Code:
# cd /etc/conf.d/init.d
ln -s net.lo net.ppp0
/etc/init.d/net.ppp0 start

however, it didn't start the pppoe connection, but "said"
Code:
 * Starting ppp0
 *   Bringing up ppp0
 *     ppp
 *       kernel does not support PPPoE
  [ !! ]

i looked up, what dmesg could tell me about pppoe and found following:
Code:
r8169: eth0: link up
ppp_generic: Unknown symbol request_module
pppox: Unknown symbol ppp_channel_index
pppox: Unknown symbol ppp_unregister_channel
pppoe: Unknown symbol pppox_ioctl
pppoe: Unknown symbol ppp_register_channel
pppoe: Unknown symbol ppp_input
pppoe: Unknown symbol unregister_pppox_proto
pppoe: Unknown symbol register_pppox_proto
pppoe: Unknown symbol pppox_unbind_sock
ppp_generic: Unknown symbol request_module
pppox: Unknown symbol ppp_channel_index
pppox: Unknown symbol ppp_unregister_channel
pppoe: Unknown symbol pppox_ioctl
pppoe: Unknown symbol ppp_register_channel
pppoe: Unknown symbol ppp_input
pppoe: Unknown symbol unregister_pppox_proto
pppoe: Unknown symbol register_pppox_proto
pppoe: Unknown symbol pppox_unbind_sock


what could be wrong? i installed all the necessary pppo* modules and added them to /etc/modules.autoload.d/kernel-2.6, why aren't they supported???


Last edited by ptero on Mon Aug 13, 2007 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Sat Aug 11, 2007 4:40 pm    Post subject: Reply with quote

ptero,

What does
Quote:
zgrep PPP /proc/config.gz
return ?
If you don't have /proc/config.gz then
Code:
grep PPP /usr/src/linux/.config
is the next best thing.

The zgrep tells about the running kernel, the grep about the current kernel configuration, which may not be related to the running kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Sun Aug 12, 2007 5:28 am    Post subject: Reply with quote

here's the grep output:
Code:
CONFIG_PPP=y
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
# CONFIG_PPP_DEFLATE is not set
# CONFIG_PPP_BSDCOMP is not set
# CONFIG_PPP_MPPE is not set
CONFIG_PPPOE=y

it's the same from the hdd as from the cd.

here's the zgrep output:
Code:
CONFIG_HDLC_PPP=m
CONFIG_PC300_MLPPP=y
# Cyclades-PC300 MLPPP support is disabled.
CONFIG_PPP=m
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPP_MPPE=m
CONFIG_PPPOE=m
CONFIG_PPPOATM=m
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Sun Aug 12, 2007 12:22 pm    Post subject: Reply with quote

ptero,

The zgrep is the embedded configuration in the running kernel.
It shows that all your PPP support has been made as modules.
Something needs to load it before it cam be used. That may be automatic, or by you doing modprobe commands.

Attempt to use your pppoe and then look in lsmod to see if your ppp modules are loaded.

That the zgrep and grep outputs differ, show that you are not using the kernel in /usr/src/linux.
That will be a problem if you need any third party kernel modules as they will build against the kernel in /usr/src/linux, not the one you are running.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
terminal9
Apprentice
Apprentice


Joined: 12 Oct 2006
Posts: 157

PostPosted: Sun Aug 12, 2007 8:59 pm    Post subject: Reply with quote

Don't mix net-dialup/rp-pppoe and net-dialup/ppp + pppoe plugin.
Use the latter only, unless you have a specific reason.
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Mon Aug 13, 2007 1:43 pm    Post subject: Reply with quote

well, there's certainly a problem with my kernel. some modules (like pppoe) don't want to load. i think, the kernel didn't compile properly. yesterday i tried to recompile, but it only took 2 minutes or less! and shouldn't menuconfig save all the options? because when i exit and restart it, there are still standard options, set by genkernel.
there also was a problem in the beginning. i emerged gentoo-sources, made menuconfig, set everything up, but make would't start, it claimed, there were some missing options and suggested to start make loadconfig (i believe, it was named so). i did, set up the missing options and compiled the kernel. actually, even the first time, it was to fast. and i believe, not all modules are compiled, in the output there's a make-string (blablabla; fi) after some module and then the compilation stops.
i want to reemerge gentoo-sources and to recompile the kernel, do i have "tidy up", to delete something, if i really want to begin the kernel part from zero?
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Mon Aug 13, 2007 4:47 pm    Post subject: Reply with quote

hmmh... either i forgot an important option or there where some problem with the sources. however, after reemerging gentoo-sources and setting everything up with genkernel --menuconfig all everything worked out and works just perfektly right now.
thank you for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum