Bringing up bridge at boot (properly)
Instead of answering the question asking for more detail let me pose a new question that will be more beneficial.
vvvvvvvvvvvvvvvvvv
If you are using a machine as an ethernet bridge how are you configuring it (include distro specific stuff) to create and enable the bridge during the boot process?
^^^^^^^^^^^^
Thanks,
Adam :o)
From: Stephen Hemminger <[email protected]>
To: "Adam Hewgill" <[email protected]>
CC: [email protected]
Subject: Re: [Bridge] Bringing up bridge at boot (properly)
Date: Wed, 30 Jun 2004 09:33:56 -0700
Quoted 11 lines · On Wed, 30 Jun 2004 11:30:30 -0400 "Adam Hewgill" <[email protected]> wrote:
Currently my ethernet bridge has 2 intel 100mps NIC's that are both part of a bridge. ( I followed the sample setup on the bridge.sf.net page.)
In addition to this I would like to access the internet from within the ethernet bridge and when using the sample instructions I have no gateway setup and no default route (0.0.0.0). I know this data has to be attached to the bridge device and not to an ethX card but I don't know how to do this.
Quoted 8 lines
Also I would like the bridge to come up and the ethX cards to be added and the bridge configured at boot. I don't like the idea of using a rc.local script and would like to use
/etc/sysconfig/network
if this is possible. Is there a setup doc that describes this somewhere?Thanks for the help
Adam :o)
The setup of network interfaces varies in each Linux distribution. What version are you using? and do you want to use DHCP?
Quoted 3 lines · Adam Hewgill
If you are using a machine as an ethernet bridge how are you configuring it (include distro specific stuff) to create and enable the bridge during the boot process?
Here's a simple setup borrowed from my home firewall, snipped to show only the bridge-related setup. I have a four-port tulip and one half of a dual eepro100 forming a broadcast medium via a brouter. relevant init.d/firewall:
BRBIN=brctl
BRIDGE=br0
INTERNAL_NETMASK=24
INTERNAL_IP=192.168.0.1
BR_ADDR="$INTERNAL_IP/$INTERNAL_NETMASK"
for i in seq 1 5
BR_IFACES="eth1 eth2 eth3 eth4 eth5"
case "$1" in
start)
$BRBIN addbr $BRIDGE
for i in $BR_IFACES ; do
$BRBIN addif $BRIDGE $i
ip l set up dev $i
done
ip l set up dev $BRIDGE
ip a a $BR_ADDR dev $BRIDGE
;;
stop)
ip a d $BR_ADDR dev $BRIDGE
ip l set down dev $BRIDGE
for i in $BR_IFACES ; do
ip l set down dev $i
$BRBIN delif $BRIDGE $i
done
$BRBIN delbr $BRIDGE
;;
esac
with debian, man update-rc.d to get it going. i try to hit right
after interface naming and before firewall setup. do remember that
default behavior will allow any ip on the machine to be hit through the bridge (at least by my experience in 2.[46]), so firewall things well.
Signature · 3 lines
nick black <[email protected]> "np: nondeterministic polynomial-time the class of dashed hopes and idle dreams." - the complexity zoo