* Re: [Bridge] Bringing up bridge at boot (properly)
@ 2004-06-30 17:51 Adam Hewgill
2004-07-01 8:20 ` [Bridge] " nick black
0 siblings, 1 reply; 4+ messages in thread
From: Adam Hewgill @ 2004-06-30 17:51 UTC (permalink / raw)
To: bridge
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 <shemminger@osdl.org>
To: "Adam Hewgill" <ahewgill@hotmail.com>
CC: bridge@osdl.org
Subject: Re: [Bridge] Bringing up bridge at boot (properly)
Date: Wed, 30 Jun 2004 09:33:56 -0700
On Wed, 30 Jun 2004 11:30:30 -0400
"Adam Hewgill" <ahewgill@hotmail.com> 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.
>
> 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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bridge] Re: Bringing up bridge at boot (properly)
2004-06-30 17:51 [Bridge] Bringing up bridge at boot (properly) Adam Hewgill
@ 2004-07-01 8:20 ` nick black
0 siblings, 0 replies; 4+ messages in thread
From: nick black @ 2004-07-01 8:20 UTC (permalink / raw)
To: bridge
On 2004-06-30, Adam Hewgill <ahewgill@hotmail.com> wrote:
> 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.
--
nick black <dank@reflexsecurity.com>
"np: nondeterministic polynomial-time
the class of dashed hopes and idle dreams." - the complexity zoo
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bridge] Bringing up bridge at boot (properly)
@ 2004-06-30 15:30 Adam Hewgill
2004-06-30 16:33 ` Stephen Hemminger
0 siblings, 1 reply; 4+ messages in thread
From: Adam Hewgill @ 2004-06-30 15:30 UTC (permalink / raw)
To: bridge
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.
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)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bridge] Bringing up bridge at boot (properly)
2004-06-30 15:30 [Bridge] " Adam Hewgill
@ 2004-06-30 16:33 ` Stephen Hemminger
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2004-06-30 16:33 UTC (permalink / raw)
To: Adam Hewgill; +Cc: bridge
On Wed, 30 Jun 2004 11:30:30 -0400
"Adam Hewgill" <ahewgill@hotmail.com> 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.
>
> 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?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-07-01 8:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30 17:51 [Bridge] Bringing up bridge at boot (properly) Adam Hewgill
2004-07-01 8:20 ` [Bridge] " nick black
-- strict thread matches above, loose matches on Subject: below --
2004-06-30 15:30 [Bridge] " Adam Hewgill
2004-06-30 16:33 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.