* [gentoo-user] adsl rp-pppoe - new baselayout problem
@ 2006-06-11 18:19 Francisco J. A. Ares
2006-06-11 18:29 ` Raymond Lewis Rebbeck
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Francisco J. A. Ares @ 2006-06-11 18:19 UTC (permalink / raw
To: gentoo-user
Hi all
Could anyone point me to some resource or share his/her "/etc/conf.d/net*" ?
I was using the (nowadays) old "/etc/init.d/rp-pppoe" script to
start/stop my adsl connection, but I did an "emerge world" without
looking at the messages that now the "net" script should handle all
possible types of connection, so now I don't know how to configure it.
I have seen on the posts and on the foruns, but none of the presented
configurations has worked. PPPoE _is_ working, thanks to "tkpppoe", but
I'd prefer to go back to the init script.
Thanks
Francisco
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] adsl rp-pppoe - new baselayout problem
2006-06-11 18:19 [gentoo-user] adsl rp-pppoe - new baselayout problem Francisco J. A. Ares
@ 2006-06-11 18:29 ` Raymond Lewis Rebbeck
2006-06-11 19:15 ` Francisco J. A. Ares
2006-06-11 19:13 ` [gentoo-user] " Sven Köhler
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Raymond Lewis Rebbeck @ 2006-06-11 18:29 UTC (permalink / raw
To: gentoo-user
On Monday, 12 June 2006 3:49, Francisco J. A. Ares wrote:
> Hi all
>
> Could anyone point me to some resource or share his/her "/etc/conf.d/net*"
> ?
>
> I was using the (nowadays) old "/etc/init.d/rp-pppoe" script to
> start/stop my adsl connection, but I did an "emerge world" without
> looking at the messages that now the "net" script should handle all
> possible types of connection, so now I don't know how to configure it.
>
> I have seen on the posts and on the foruns, but none of the presented
> configurations has worked. PPPoE _is_ working, thanks to "tkpppoe", but
> I'd prefer to go back to the init script.
>
> Thanks
> Francisco
Have you read /etc/conf.d/net.example?
--
Raymond Lewis Rebbeck
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: adsl rp-pppoe - new baselayout problem
2006-06-11 18:19 [gentoo-user] adsl rp-pppoe - new baselayout problem Francisco J. A. Ares
2006-06-11 18:29 ` Raymond Lewis Rebbeck
@ 2006-06-11 19:13 ` Sven Köhler
2006-06-11 20:59 ` Francisco J. A. Ares
2006-06-12 0:51 ` [gentoo-user] " Philip Webb
2006-06-12 21:45 ` Norman Rieß
3 siblings, 1 reply; 10+ messages in thread
From: Sven Köhler @ 2006-06-11 19:13 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
> I was using the (nowadays) old "/etc/init.d/rp-pppoe" script to
> start/stop my adsl connection, but I did an "emerge world" without
> looking at the messages that now the "net" script should handle all
> possible types of connection, so now I don't know how to configure it.
config_ppp0=( "ppp" )
plugins_ppp0=( "pppoe" )
link_ppp0="eth1"
username_ppp0="..."
pppd_ppp0=(
"noauth"
"defaultroute"
"holdoff 0"
)
depend_ppp0() {
need net.eth1
}
/etc/init.d/net.ppp0 must be a link to net.lo
replace eth1 by whatever you're using.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] adsl rp-pppoe - new baselayout problem
2006-06-11 18:29 ` Raymond Lewis Rebbeck
@ 2006-06-11 19:15 ` Francisco J. A. Ares
0 siblings, 0 replies; 10+ messages in thread
From: Francisco J. A. Ares @ 2006-06-11 19:15 UTC (permalink / raw
To: gentoo-user
Raymond Lewis Rebbeck wrote:
> On Monday, 12 June 2006 3:49, Francisco J. A. Ares wrote:
>
>> Hi all
>>
>> Could anyone point me to some resource or share his/her "/etc/conf.d/net*"
>> ?
>>
>> I was using the (nowadays) old "/etc/init.d/rp-pppoe" script to
>> start/stop my adsl connection, but I did an "emerge world" without
>> looking at the messages that now the "net" script should handle all
>> possible types of connection, so now I don't know how to configure it.
>>
>> I have seen on the posts and on the foruns, but none of the presented
>> configurations has worked. PPPoE _is_ working, thanks to "tkpppoe", but
>> I'd prefer to go back to the init script.
>>
>> Thanks
>> Francisco
>>
>
> Have you read /etc/conf.d/net.example?
>
>
Yes, I did, but id didn't help. I've also read the Gentoo installation
manual, where it says that the "/etc/conf.d/net" should consist of only
2 lines, and it also didn't solved my problem - I also have
/etc/ppp/pap-secrets correctly (I think) configured.
Surely I'm missing something, but can't find what.
Thanks anyway
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: adsl rp-pppoe - new baselayout problem
2006-06-11 19:13 ` [gentoo-user] " Sven Köhler
@ 2006-06-11 20:59 ` Francisco J. A. Ares
0 siblings, 0 replies; 10+ messages in thread
From: Francisco J. A. Ares @ 2006-06-11 20:59 UTC (permalink / raw
To: gentoo-user
Sven Köhler wrote:
>> I was using the (nowadays) old "/etc/init.d/rp-pppoe" script to
>> start/stop my adsl connection, but I did an "emerge world" without
>> looking at the messages that now the "net" script should handle all
>> possible types of connection, so now I don't know how to configure it.
>>
>
> config_ppp0=( "ppp" )
> plugins_ppp0=( "pppoe" )
> link_ppp0="eth1"
> username_ppp0="..."
> pppd_ppp0=(
> "noauth"
> "defaultroute"
> "holdoff 0"
> )
> depend_ppp0() {
> need net.eth1
> }
>
>
> /etc/init.d/net.ppp0 must be a link to net.lo
> replace eth1 by whatever you're using.
>
>
Thanks a lot. Gonna finish other stuff, and as soon as possible gonna
give it a try
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] adsl rp-pppoe - new baselayout problem
2006-06-11 18:19 [gentoo-user] adsl rp-pppoe - new baselayout problem Francisco J. A. Ares
2006-06-11 18:29 ` Raymond Lewis Rebbeck
2006-06-11 19:13 ` [gentoo-user] " Sven Köhler
@ 2006-06-12 0:51 ` Philip Webb
2006-06-12 21:45 ` Norman Rieß
3 siblings, 0 replies; 10+ messages in thread
From: Philip Webb @ 2006-06-12 0:51 UTC (permalink / raw
To: gentoo-user
060611 Francisco J. A. Ares wrote:
> Could anyone point me to some resource or share his/her "/etc/conf.d/net*" ?
> I was using the old "/etc/init.d/rp-pppoe" script to start/stop adsl
> but I did an "emerge world" ...
Always a bad idea (smile).
> ... without looking at the messages
> that now the "net" script should handle all possible types of connection,
> so now I don't know how to configure it.
The dox are not quite adequate: I filed a bug & got the usual snotty answer.
I needed 3 things to get it working :
(1) in /etc/init.d , delete the old net.ppp0 (or rename it neutrally)
& do 'ln -s net.lo net.ppp0' ;
(2) do 'rc-update del net.eth0 default' 'rc-update add net.ppp0 default'
(this is the bit which isn't adequately documented: anyone would think
that both are simply symlinks to net.lo so what's the difference ?
but in fact, it affects how Baselayout configures the connection);
(3) create a new /etc/conf.d/net following net.example : mine is
config_eth0=( "192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" )
# We have to instruct ppp0 to actually use ppp
config_ppp0=( "ppp" )
# Each PPP interface requires an interface to use as a "Link"
link_ppp0="eth0" # PPPoE requires an ethernet interface
# Specify what pppd plugins you want to use:
plugins_ppp0=( "pppoe" )
# PPP requires at least a username.
# It will use the password specified in /etc/ppp/*-secrets
username_ppp0='user@isp'
pppd_ppp0=( "updetach" "defaultroute" )
I found the 2 items in the last line were required by testing items.
You may need a bit of trial+error to get it right for your system+ISP.
If you really can't get it to work, you can go on using Rp-pppoe:
just omit/reverse steps (1-2) & restore your old /etc/conf.d/net ;
there's a section in net.example confirming this.
--
========================,,============================================
SUPPORT ___________//___, Philip Webb : purslow@chass.utoronto.ca
ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
TRANSIT `-O----------O---' University of Toronto
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] adsl rp-pppoe - new baselayout problem
2006-06-11 18:19 [gentoo-user] adsl rp-pppoe - new baselayout problem Francisco J. A. Ares
` (2 preceding siblings ...)
2006-06-12 0:51 ` [gentoo-user] " Philip Webb
@ 2006-06-12 21:45 ` Norman Rieß
2006-06-12 22:27 ` [gentoo-user] " Sven Köhler
3 siblings, 1 reply; 10+ messages in thread
From: Norman Rieß @ 2006-06-12 21:45 UTC (permalink / raw
To: gentoo-user
Francisco J. A. Ares schrieb:
> but
> I'd prefer to go back to the init script.
>
> Thanks
> Francisco
>
The old rp-pppoe init script works without problems on my up-to-date
gentoo router. I prefer this way, too.
If you need it, here is the script:
bragi ~ # cat /etc/init.d/rp-pppoe
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/net-dialup/rp-pppoe/files/rp-pppoe.rc,v 1.7
2004/10/07 22:06:53 eradicator Exp $
depend() {
use net
after domainname
}
start() {
ebegin "Starting adsl"
start-stop-daemon --start --quiet --exec /usr/sbin/pppoe-start
eend $?
}
stop() {
ebegin "Stopping adsl"
start-stop-daemon --start --quiet --exec /usr/sbin/pppoe-stop
eend $?
}
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: adsl rp-pppoe - new baselayout problem
2006-06-12 21:45 ` Norman Rieß
@ 2006-06-12 22:27 ` Sven Köhler
2006-06-13 6:56 ` Norman Rieß
0 siblings, 1 reply; 10+ messages in thread
From: Sven Köhler @ 2006-06-12 22:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
> The old rp-pppoe init script works without problems on my up-to-date
> gentoo router. I prefer this way, too.
Nobody needs the old init.d-script anymore. Here are the advantages of
using baselayout:
- you can unmerge rp-pppoe
- the pppoe-plugin provided by pppd uses the kernel PPPoE-implementation
which is much faster (but experimental though)
- /etc/init.d/net.pppX is part of "net", /etc/init.d/rp-pppoe is not
(which is an advantage because of scripts that depends on net)
- ... more?
Well, look at the configuration i posted. It's very simple (once you
found out and understood what's going on).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: adsl rp-pppoe - new baselayout problem
2006-06-12 22:27 ` [gentoo-user] " Sven Köhler
@ 2006-06-13 6:56 ` Norman Rieß
2006-06-13 16:55 ` Sven Köhler
0 siblings, 1 reply; 10+ messages in thread
From: Norman Rieß @ 2006-06-13 6:56 UTC (permalink / raw
To: gentoo-user
>> The old rp-pppoe init script works without problems on my up-to-date
>> gentoo router. I prefer this way, too.
>
> Nobody needs the old init.d-script anymore.
Perhaps we don´t need it, but we like to use it.
The OP said he wanted to use the script. If he wants to use that, it´s his
decision, isn´t it?
> Here are the advantages of
> using baselayout:
>
> - you can unmerge rp-pppoe
I do not see any advantage in that.
And: The net.example tells to emerge rp-pppoe
[...]
#-----------------------------------------------------------------------------
# ADSL
# For ADSL support, emerge net-dialup/rp-pppoe
# You should make the following settings and also put your [...]
> - the pppoe-plugin provided by pppd uses the kernel PPPoE-implementation
> which is much faster (but experimental though)
Faster in what way? It surely does not speed up your adsl-connection and i
don´t give a damn on that 2,5 seconds at 5 o´clock in the morning, that it
takes to reconnect.
> - /etc/init.d/net.pppX is part of "net", /etc/init.d/rp-pppoe is not
> (which is an advantage because of scripts that depends on net)
I do not see an advantage in that, too.
> - ... more?
This is the wrong word, i think "something" would be nice. But that is my
point of view, others may have seen some advantages in that.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: adsl rp-pppoe - new baselayout problem
2006-06-13 6:56 ` Norman Rieß
@ 2006-06-13 16:55 ` Sven Köhler
0 siblings, 0 replies; 10+ messages in thread
From: Sven Köhler @ 2006-06-13 16:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2535 bytes --]
>>> The old rp-pppoe init script works without problems on my up-to-date
>>> gentoo router. I prefer this way, too.
>> Nobody needs the old init.d-script anymore.
>
> Perhaps we don´t need it, but we like to use it.
>
> The OP said he wanted to use the script. If he wants to use that, it´s his
> decision, isn´t it?
Well, it his decision, but AFAIK the script is not maintained anymore
and is replaced by ...
>> Here are the advantages of
>> using baselayout:
>>
>> - you can unmerge rp-pppoe
>
> I do not see any advantage in that.
> And: The net.example tells to emerge rp-pppoe
>
> [...]
> #-----------------------------------------------------------------------------
> # ADSL
> # For ADSL support, emerge net-dialup/rp-pppoe
> # You should make the following settings and also put your [...]
... baselayout's rp-pppoe support that you just found.
BTW: the way to use it, is simply:
config_eth1=( "adsl" )
/etc/init.d/net.eth1 will then also start and stop rp-pppoe
But you can also use baselayout's new PPP support that just needs the
pppoe-plugin which comes with pppd itself.
>> - the pppoe-plugin provided by pppd uses the kernel PPPoE-implementation
>> which is much faster (but experimental though)
>
> Faster in what way? It surely does not speed up your adsl-connection and i
> don´t give a damn on that 2,5 seconds at 5 o´clock in the morning, that it
> takes to reconnect.
Hmmm, well, it might give you - let's say - 1ms of ping-time or
something like that. Anyway, IMHO it's the "future" way of using PPPoE
if you use the kernel's PPPoE-Implemenation.
No need for an additional user-mode rp-pppoe process. And no need for
the IPC-overhead between the pppd-process and the rp-pppoe process.
Some freaks may have used the "async"-mode instead of the "sync"-mode
for the IPC between pppd and rp-pppoe. Well, the async-mode was also
called "faster" but it also had the bug, that it might lock up. So the
pppd's pppoe-plugin is the perfect way to get something "fast" and working.
>> - ... more?
>
> This is the wrong word, i think "something" would be nice. But that is my
> point of view, others may have seen some advantages in that.
Well, i'm not going to argue about what is an advantage, and what is
not. It depends on the reader and i just tried to explain, what _might_
be seen as an advantage (actually i see advantages in those things i
mentioned - though i don't care about the 1ms ping-improvement).
Greetings,
Sven
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-06-13 17:09 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-11 18:19 [gentoo-user] adsl rp-pppoe - new baselayout problem Francisco J. A. Ares
2006-06-11 18:29 ` Raymond Lewis Rebbeck
2006-06-11 19:15 ` Francisco J. A. Ares
2006-06-11 19:13 ` [gentoo-user] " Sven Köhler
2006-06-11 20:59 ` Francisco J. A. Ares
2006-06-12 0:51 ` [gentoo-user] " Philip Webb
2006-06-12 21:45 ` Norman Rieß
2006-06-12 22:27 ` [gentoo-user] " Sven Köhler
2006-06-13 6:56 ` Norman Rieß
2006-06-13 16:55 ` Sven Köhler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox