Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21418 - init script to configure bridge devices
Summary: init script to configure bridge devices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-21 08:42 UTC by Gustavo Felisberto (RETIRED)
Modified: 2004-10-17 09:04 UTC (History)
5 users (show)

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


Attachments
The sample /etc/conf.d/bridge file (bridge.example,89 bytes, text/plain)
2003-05-21 08:44 UTC, Gustavo Felisberto (RETIRED)
Details
the /etc/init.d/bridge script (bridge,603 bytes, text/plain)
2003-05-21 08:45 UTC, Gustavo Felisberto (RETIRED)
Details
The new bridge-utils ebuild and companion files (bridge-utils.tar.gz,1.52 KB, application/gzip)
2003-06-19 11:01 UTC, Gustavo Felisberto (RETIRED)
Details
rc-script for bridging (replace script from ebuild above) (bridge,939 bytes, text/plain)
2004-02-04 04:36 UTC, Denis Knauf
Details
Another rc-script proposal, with a little extra (bridge,1.21 KB, text/plain)
2004-06-29 06:55 UTC, Jesper aka XyborX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Felisberto (RETIRED) gentoo-dev 2003-05-21 08:42:34 UTC
I have a few network cards bridge together in my system... there is no support
in gentoo for that, so i had to configure it in local.start and then start the
services.
I have made a small init script for that (it creates the bridge devices and
binds  network cards to it)
The only change to the base system neede for this to work ok is to have the
net.* scripts use it:
 # For pcmcia and/or bridge users. Note that pcmcia and/or bridge must be added
to the same
# runlevel as the net.* script that needs it.
depend() {
        use pcmcia bridge
}
I am sending the script and a sample /etc/conf.d/bridge

Reproducible: Always
Steps to Reproduce:
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2003-05-21 08:44:02 UTC
Created attachment 12245 [details]
The sample /etc/conf.d/bridge file
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2003-05-21 08:45:04 UTC
Created attachment 12246 [details]
the /etc/init.d/bridge script
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-21 14:03:09 UTC
Should go with net-misc/bridge-utils I guess ?
Comment 4 Gustavo Felisberto (RETIRED) gentoo-dev 2003-05-25 18:14:06 UTC
Probably a good place and have a message telling the user to add it to the boot runlevel and change it to depend from modules. With we loose the ability to bridge using pcmcia devices (unlesse pcmcia is in the boot, is this possible?)
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2003-06-19 11:01:42 UTC
Created attachment 13551 [details]
The new bridge-utils ebuild and companion files

This a new version of the bridge-utils ebuild that includes the init script.
Comment 6 Phil Sorber 2003-10-20 02:53:18 UTC
this is a dup to 30688
Comment 7 Gustavo Felisberto (RETIRED) gentoo-dev 2003-10-20 05:57:43 UTC
This is not a dup. It is a diferent way of fixing the same problem :).
And also a dup normally has a higher bug number :)
Comment 8 Denis Knauf 2004-02-04 04:36:00 UTC
Created attachment 24930 [details]
rc-script for bridging (replace script from ebuild above)

better errorhandling
full pathnames (/sbin/brctl)
ifconfig set up with "0.0.0.0 promisc"
Comment 9 Jared H. Hudson (RETIRED) gentoo-dev 2004-03-27 06:54:24 UTC
added
Comment 10 Jesper aka XyborX 2004-06-29 06:55:00 UTC
Created attachment 34419 [details]
Another rc-script proposal, with a little extra

Without ifconfig ${b} up, the bridge doesn't seem to work properly, so I just
added it here. It starts the interface through a regular /etc/init.d/net.${b}
if possible, otherwise just ifconfig ${b}. This makes it possible to setup an
ip address for the bridge interface in /etc/conf.d/net just like a normal
interface.

I think I added something else, I just don't remember what it was. Tiny
details, I guess.

My first bugzilla post ever. Bare with me
Comment 11 Davin Boling 2004-10-17 08:49:42 UTC
Wow, nice to see we have one now!

The only critique I have is that it's possible to configure both interfaces to be addressless (0.0.0.0 promisc) and have the bridge itself hold the IP. Could another option in conf.d/bridge be added that allows you to configure the ifconfig parameters for the device? This would allow total customization of the bridged ethernet devices and the bridge itself, via conf.d/net and conf.d/bridge.
Comment 12 Davin Boling 2004-10-17 09:04:29 UTC
Nevermind, I see exactly what you did. Ignore my remark.