View previous topic :: View next topic |
Author |
Message |
zeke_j2007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo_2.gif)
Joined: 24 Feb 2007 Posts: 21
|
Posted: Sat Feb 24, 2007 7:17 pm Post subject: Starting PPPoE connection at startup time |
|
|
Currently I am using pppoe-start, but I have to manually type this command after reboot. I rarely reboot computer but would like to have it started automatically. This is the content of my /etc/conf.d/net file:
Code: |
config_ppp0=(
"ppp"
)
link_ppp0="eth0"
plugins_ppp0=(
"pppoe"
)
username_ppp0='username'
link_ppp0="pty 'pppoe'"
pppd_ppp0=(
"mtu 1492"
"mru 1492"
"updetach"
"noauth"
"defaultroute"
"ipcp-accept-remote"
"ipcp-accept-local"
"holdoff 1"
"lcp-echo-interval 15"
"lcp-echo-failure 3"
"noaccomp"
"noccp"
"nobsdcomp"
"nodeflate"
"nopcomp"
"novj"
"novjccomp"
)
depend_ppp0=(
need net.eth0
|
/etc/init.d/net.ppp0 start prints:
FATAL: Module pppoe not found.
* kernel does not support PPPoE
* ERROR: cannot start netmount as net.ppp0 could not start
But I want to use user mode PPPoE and have emerged rp-pppoe. Kernel mode PPPoE marked as experimental and I think it is better to use user mode PPPoE. What's wrong with this config file? _________________ I will never run non open source software on my computer. Please do not advice me running this kind of software. We should not use non open source software as it will cause total control over humanity in the near future. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54832 Location: 56N 3W
|
Posted: Sat Feb 24, 2007 8:35 pm Post subject: |
|
|
zeke_j2007,
Both the emerge and the in kernel pppoe make a kernel module.
The kernel allows it to be built it but with the emerge, it remains a module.
Add a line to your /etc/modules.autoload.d/kernel-2.6 this will load the module at boot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zeke_j2007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo_2.gif)
Joined: 24 Feb 2007 Posts: 21
|
Posted: Sun Feb 25, 2007 10:22 am Post subject: |
|
|
FATAL: Module pppoe not found. _________________ I will never run non open source software on my computer. Please do not advice me running this kind of software. We should not use non open source software as it will cause total control over humanity in the near future. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54832 Location: 56N 3W
|
Posted: Sun Feb 25, 2007 11:42 am Post subject: |
|
|
zeke_j2007,
Hmm - I must have the module name wrong. What kernel module do you load to make PPPoE work?
Use that name, whatever it is. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zeke_j2007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo_2.gif)
Joined: 24 Feb 2007 Posts: 21
|
Posted: Sun Feb 25, 2007 11:47 am Post subject: |
|
|
pppoe-start doesn't load any modules, lsmod prints empty list. Are you sure it should load modules? I think loading module is kernel mode pppoe but not user mode. _________________ I will never run non open source software on my computer. Please do not advice me running this kind of software. We should not use non open source software as it will cause total control over humanity in the near future. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54832 Location: 56N 3W
|
Posted: Sun Feb 25, 2007 12:26 pm Post subject: |
|
|
zeke_j2007,
There is no difference between kernel mode pppoe and user mode pppoe, except possibly the version of the code in the emerge and the kernel.
The build process says to me
Code: | checking for Linux 2.4.X kernel-mode PPPoE support... no
*** Your kernel does not appear to have built-in PPPoE support,
*** but I will build the kernel-mode plugin anyway.
checking packing order of bit fields... reversed | Thats a reference to the replacement for a kernel module. It still runs in kernel space.
As you say, there is no kernel module to load with modprobe.
From looking at the list of files installed, you need to run Code: | /usr/sbin/pppoe-start | to bring up pppoe.
Normally, services have a script in /etc/init.d that is added to rc-update to start them. You can make a symbolic link for that purpose but it will be missing the ordering statements, so it may start itself ok but after the things that depend on it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mrness Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Daffy.gif)
Joined: 17 Feb 2004 Posts: 375 Location: bucharest.ro
|
Posted: Thu Mar 08, 2007 12:26 pm Post subject: |
|
|
ppp baselayout module don't use rp-pppoe at all, therefore you have to activate PPPoE kernel support in order to use this baselayout module for your PPPoE connection.
Don't worry, it is rock stable (I use it on one of my servers). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
enzobelmont Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/360149105413799b26430e.gif)
Joined: 06 Apr 2004 Posts: 345 Location: Chiapas, Mexico
|
Posted: Thu Mar 08, 2007 7:53 pm Post subject: |
|
|
place
in /etc/conf.d/local.start
and
in /etc/conf.d/local.stop
then add local to your default run level
Code: | rc-update add local default |
after this yous system will do a pppoe-start every boot and pppoe-stop every reboot/shutdown.
sorry my english... ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Mens sana in corpore sano... Gentoo laetificat cor hominis |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vampirex n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/690484434969e6bb205f2.jpg)
Joined: 01 Jul 2008 Posts: 28 Location: Transilvania
|
Posted: Tue Jul 08, 2008 6:32 pm Post subject: |
|
|
in /etc/conf.d/local.stop
should be: stop (I guess)
Just for record. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|