Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting PPPoE connection at startup time
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
zeke_j2007
n00b
n00b


Joined: 24 Feb 2007
Posts: 21

PostPosted: Sat Feb 24, 2007 7:17 pm    Post subject: Starting PPPoE connection at startup time Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 24, 2007 8:35 pm    Post subject: Reply with quote

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
Code:
pppoe
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
View user's profile Send private message
zeke_j2007
n00b
n00b


Joined: 24 Feb 2007
Posts: 21

PostPosted: Sun Feb 25, 2007 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 25, 2007 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
zeke_j2007
n00b
n00b


Joined: 24 Feb 2007
Posts: 21

PostPosted: Sun Feb 25, 2007 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 25, 2007 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrness
Retired Dev
Retired Dev


Joined: 17 Feb 2004
Posts: 375
Location: bucharest.ro

PostPosted: Thu Mar 08, 2007 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
enzobelmont
Guru
Guru


Joined: 06 Apr 2004
Posts: 345
Location: Chiapas, Mexico

PostPosted: Thu Mar 08, 2007 7:53 pm    Post subject: Reply with quote

place
Quote:
pppoe-start

in /etc/conf.d/local.start

and
Quote:
pppoe-start

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:
_________________
Mens sana in corpore sano... Gentoo laetificat cor hominis
Back to top
View user's profile Send private message
vampirex
n00b
n00b


Joined: 01 Jul 2008
Posts: 28
Location: Transilvania

PostPosted: Tue Jul 08, 2008 6:32 pm    Post subject: Reply with quote

Quote:
pppoe-start

in /etc/conf.d/local.stop

should be: stop (I guess)

Just for record.
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