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:
Created attachment 12245 [details] The sample /etc/conf.d/bridge file
Created attachment 12246 [details] the /etc/init.d/bridge script
Should go with net-misc/bridge-utils I guess ?
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?)
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.
this is a dup to 30688
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 :)
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"
added
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
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.
Nevermind, I see exactly what you did. Ignore my remark.