Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72392 - Patch for bridge support in /etc/init.d/net.* and /etc/conf.d/net
Summary: Patch for bridge support in /etc/init.d/net.* and /etc/conf.d/net
Status: RESOLVED DUPLICATE of bug 55394
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 14:09 UTC by Chris Verges
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
Patch for /etc/conf.d/net file (bridge_net_conf.patch,340 bytes, patch)
2004-11-24 14:10 UTC, Chris Verges
Details | Diff
Patch for /etc/init.d/net.eth0 (bridge_net_init.patch,2.64 KB, patch)
2004-11-24 14:11 UTC, Chris Verges
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Verges 2004-11-24 14:09:11 UTC
I wrote a quick add-in to the baselayout net (init and conf) files to add support for 802.1d bridge support.  I realize that a separate bridge script has already been created, but I feel as though keeping all network configuration in a single file is a good idea.

To use, I added a variable to /etc/conf.d/net called "bridge_IFACE."  This is a composite of all of the interfaces which make up the bridge.  The IP address of the bridge interface can be set through the iface_IFACE variables like normal.

Example:
  # /etc/conf.d/net:
  iface_br0="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
  bridge_br0="eth0 eth1 eth2"

  aeryn ~ # /etc/init.d/net.br0 start
   * Creating bridge interface br0...          [ ok ]
   * Bringing br0 up (192.168.1.1)...          [ ok ]

I submit this patch for consideration into the baselayout files necessary.  Thank you!

Reproducible: Always
Steps to Reproduce:
Comment 1 Chris Verges 2004-11-24 14:10:48 UTC
Created attachment 44674 [details, diff]
Patch for /etc/conf.d/net file
Comment 2 Chris Verges 2004-11-24 14:11:13 UTC
Created attachment 44675 [details, diff]
Patch for /etc/init.d/net.eth0
Comment 3 Roy Marples (RETIRED) gentoo-dev 2004-12-03 14:57:14 UTC
Thanks for the patches - but we already have bridge support in baselayout-1.11.6-r1

*** This bug has been marked as a duplicate of 55394 ***