Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24975 - net.eth0 with support for bringing up adsl interfaces
Summary: net.eth0 with support for bringing up adsl interfaces
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2003-07-21 09:22 UTC by Patrick McLean
Modified: 2004-06-26 15:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the net.eth0 modified for adsl interfaces (net.eth0,5.36 KB, text/plain)
2003-07-21 09:22 UTC, Patrick McLean
Details
the net.eth0 modified for adsl interfaces (net.eth0,5.36 KB, text/plain)
2003-07-21 09:22 UTC, Patrick McLean
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McLean gentoo-dev 2003-07-21 09:22:00 UTC
Here is a modified version of net.eth0 toat cna bring up adsl interfaces using
adsl-start.

This is a preliminatry version without any support for multiple adsl interfaces,
hopefully when i get some time I will modify adsl-setup and this script to keep
multiple profiles for different adsl interfaces.

This needs the iface_IFACE set to "adsl" and a iface_user set to the username on
the ISP in /etc/conf.d/net
Comment 1 Patrick McLean gentoo-dev 2003-07-21 09:22:36 UTC
Created attachment 14812 [details]
the net.eth0 modified for adsl interfaces
Comment 2 Patrick McLean gentoo-dev 2003-07-21 09:22:58 UTC
Created attachment 14813 [details]
the net.eth0 modified for adsl interfaces
Comment 3 Patrick McLean gentoo-dev 2003-07-21 09:27:19 UTC
need to add a check to make sure adsl-setup has been run as well, but this is a start.
Comment 4 Zhen Lin 2003-07-21 21:59:28 UTC
Nay. net.eth? should not be responsible for ADSL connections. Perhaps pppoe.eth? will be better.

You see, I actually use my eth0 for TWO purposes, one for PPPoE, the other for normal networking.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-22 08:08:20 UTC
He modified it to also support ADSL besides the normal NICs, and NOT just 
to support ADSL only ...
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2003-07-22 10:40:44 UTC
Ok, so for what kind of DSL connections is this ? I just tried it with mine (eth0 is the NIC that is connected to my DSL Modem via pppoe) and it didn't work (I'm not complaining, just curious). AFAIK ppp0 is the standard interface for DSL rp-pppoe, am I correct ? So the DSL stuff might be more logical in net.ppp0.
Comment 7 Zhen Lin 2003-07-22 19:32:17 UTC
You misunderstand.

In my setup, net.adsl brings up ppp0 via PPPoE on eth0, and after that, net.eth0 brings up eth0. I know I shouldn't be doing this, but I don't have two network cables running to my server, only one.

Interesting idea, but I agree that net.eth0 is the wrong place to put it. net.ppp0 or adsl.eth0 or pppoe.eth0 or net.pppoe0 are probably more appropriate.
Comment 8 Aron Griffis (RETIRED) gentoo-dev 2004-05-06 19:50:07 UTC
Hi, I've been helping Martin maintain the rc-scripts stuff lately.  I have a few comments about this bug.

First, thanks for the patch to make adsl stuff work in net.eth0.  We really appreciate patches. :-)  That said, I have some questions.

I have an ADSL connection personally, but I have a modem/router that does PPPoA and then does NAT for the rest of the network.  In my setup there is no real interaction required from my workstation to bring up the ADSL connection.  Therefore I don't quite understand what adsl-start and adsl-stop do.  Would you mind explaining or pointing me to some documentation?

Additionally some people in this bug have suggested that a better home would be net.ppp0 or that another script would be more appropriate.  What was your rationale for putting this in net.eth0?  Do you agree or disagree with their arguments?

Sorry to put the burden back on you for explanation, but I can't apply this (or a variant) without a better understanding of it.  Since this bug is so old, I'm closing NEEDINFO but please feel free to re-open if you can provide the needed information.  Thanks!
Comment 9 SpanKY gentoo-dev 2004-05-06 22:05:49 UTC
PPPoE is different ... it requires things to be run in order to work

on my routers which use PPPoE, i've made a small rc-script that runs adsl-start and adsl-stop ... these scripts are provided by the rp-pppoe package ... the only real package out there that handles PPPoE for you and does it nicely :)

basically a typical setup looks like this:
eth0 -> PPPoE -> ppp0 -> WAN
eth1 -> LAN

so when you run adsl-start, it sets up ppp0 for you ... eth0 is never brought up because thats just not how it works :)  the ppp0 interface is run over eth0 so bringing up eth0 would kill the whole thing ... you dont need to add all the fancy stuff that we have for net.eth and net.ppp because all the settings are placed into /etc/ppp/pppoe.conf ... and all the times i've done PPPoE, network information was provided via dhcp

so i guess the reason the patch is for net.eth0 is that eth0 is really used for bringing up the ppp0 and thus the router but in reality, `ifconfig eth0 up` does not happen ... the proposed stuff looks pretty good ... i would just remove the hardcoding of /etc/ppp/pppoe.conf from it since adsl-{start,stop} default to that anyways
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2004-05-07 15:42:51 UTC
Thanks for the explanation Spanky.  I'll work on getting this in
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-06-14 09:29:01 UTC
What package provides adsl-start?  It's not on my system
Comment 12 SpanKY gentoo-dev 2004-06-14 12:29:33 UTC
rp-pppoe
Comment 13 Aron Griffis (RETIRED) gentoo-dev 2004-06-14 20:26:02 UTC
ok, I've done half of what needs to be done here: pidfile enforcement in the rp-pppoe package. That makes it possible to have separate pid files for different interfaces, and the pidfiles are controlled by net.eth0.  This is important because net.eth0 needs to be able to shut down an interface even if the configuration has changed.  In order for that to happen, there needs to be a reliable method for testing the existing configuration.

I have the net.eth0 modifications ready as well, but they're on my laptop, so I'll commit them tomorrow to rc-scripts cvs
Comment 14 Brad Laue (RETIRED) gentoo-dev 2004-06-15 01:00:10 UTC
On this note, I've just created a bug detailing an idea I've been throwing around with regard to kernel PPPoE - check out bug #53954 if you're interested.
Comment 15 Aron Griffis (RETIRED) gentoo-dev 2004-06-15 10:58:29 UTC
ok, after I made those changes to rp-pppoe I found a way to avoid the need for them in net.eth0.   So eventually I'll back them out, once I'm certain about it.

I've committed the necessary changes to net.eth0 and it will appear in the next release of baselayout.  Thanks for the initial cut at the code, Patrick, and for your explanations, Spanky.
Comment 16 Aron Griffis (RETIRED) gentoo-dev 2004-06-26 15:48:53 UTC
baselayout-1.10 is now in portage.  It's package.masked at the moment but will be unmasked shortly.