Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Openrc & pppoe?
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
katabami
n00b
n00b


Joined: 11 Jul 2009
Posts: 40

PostPosted: Tue Feb 15, 2011 2:41 am    Post subject: [Solved] Openrc & pppoe? Reply with quote

[Solved]
In variable value assignment in /etc/conf.d/net, I wrongly inserted a whitespace after = sign, and it caused problem, like this:

plugins_ppp0= "pppoe" # equality and double quote should exclude inbetween whitespace

Thanks to all who've read, and especially to those who replied.

[Original message]
Hi. Help me submitting an openrc patch in regard to pppoe. (It looks like ppp is a headache for devs; they want a patch, not a report "it doesn't work." )

I use pppoe in net-dialup/ppp. In baselayout-1, a line in /etc/conf.d/net:
plugins_ppp0=( "pppoe" )
does it.

I switched to openrc, where you can't any more. The doc says pppoe can be used in that way, but no. The correct configuration is:
* Add a line in /etc/ppp/option: plugin rp-pppoe.so This was not necessary with baselayout-1.
* No "plugins_ppp0" line in /etc/conf.d/net. (This option seems to set an executable name, but there's no /usr/(s)bin/pppoe.)

I've checked /lib/rc/net/ppp.sh of both baselayout-1 and openrc, and the support I wanted is dropped. It's ok, a dev's choice. But the doc is lacking.

Tell me, any suggestion on what's the difference of my pppoe use from yours? From the bugzilla and forum, many still seem to use pppoe

Thanks beforehand.


Last edited by katabami on Tue Feb 22, 2011 5:27 am; edited 1 time in total
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2289
Location: $TERM

PostPosted: Tue Feb 15, 2011 9:44 am    Post subject: Reply with quote

I use nm-applet for pppoe. Unfortunately there's no complete commandline interface for networkmanager.

Another option is to use rp-pppoe directely.

pppoe-setup

then pppoe-start. This used to work, but lately it stopped working, so I'm stuck with Gnome NM and that too on KDE.
_________________
My blog
Back to top
View user's profile Send private message
katabami
n00b
n00b


Joined: 11 Jul 2009
Posts: 40

PostPosted: Sat Feb 19, 2011 5:17 am    Post subject: Reply with quote

Hi, dE_logics, thank you for your reply.

If net-dialup/rp-pppoe doesn't work, I wonder if you could send a bug report. It's not in the bugzilla. Anyway rp-pppoe is considered obsolete, IIRC, but it's better to clarify the state and share the knowledge.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Feb 19, 2011 3:38 pm    Post subject: Reply with quote

I am using baselayout 1.12.14-r1

I have been using rp-pppoe for years now with no problems.

My system is command line only, no GUI.

If rp-pppoe is obsolete what should I be using? Is this the correct documentation?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Sat Feb 19, 2011 4:15 pm    Post subject: Reply with quote

rp-pppoe is a userspace implementation, that you get by installing net-dialup/rp-pppoe. That documentation describes how to use the in-kernel implementation. Both work, but I recall reading somewhere the userspace implementation uses more resources (CPU and ram).

The thing with baselayout-2 is that bash arrays aren't supported. So you can't use plugins_ppp0=( "pppoe" ). The config should look like this:
Code:
link_ppp0="eth0"
plugins_ppp0="pppoe"
pppd_ppp0="updetach defaultroute usepeerdns"
username_ppp0='blah'
password_ppp0='ugabuga'
Back to top
View user's profile Send private message
katabami
n00b
n00b


Joined: 11 Jul 2009
Posts: 40

PostPosted: Tue Feb 22, 2011 5:22 am    Post subject: Reply with quote

@JC99: The answer is yes. You're not forced to migrate, but it'll help to do that before transition to openrc, which you can't avoid in feature.

@Gusar: Thanks for your reply. I found that I've inserted a whitespace after = sign, and it was the cause.

Sorry for making noise.
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