* [Bridge] Adding same physical port to multiple bridges
@ 2004-01-28 1:10 Abhijit Kumbhare
2004-01-28 18:01 ` [Bridge] " Stephen Hemminger
0 siblings, 1 reply; 4+ messages in thread
From: Abhijit Kumbhare @ 2004-01-28 1:10 UTC (permalink / raw)
To: shemminger; +Cc: bridge
Hi,
Is there any particular reason why the same physical port cannot be
added to multiple bridges? Is it because of STP?
If I am not using STP - can I change the code to have the same physical
port in 2 VLANs? Is that a safe change?
Thanks,
Abhijit
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bridge] Re: Adding same physical port to multiple bridges
2004-01-28 1:10 [Bridge] Adding same physical port to multiple bridges Abhijit Kumbhare
@ 2004-01-28 18:01 ` Stephen Hemminger
2004-01-29 1:38 ` Josh Lehan
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2004-01-28 18:01 UTC (permalink / raw)
To: Abhijit Kumbhare; +Cc: bridge
On Tue, 27 Jan 2004 17:10:43 -0800
Abhijit Kumbhare <abhijitk@nortelnetworks.com> wrote:
> Hi,
>
> Is there any particular reason why the same physical port cannot be
> added to multiple bridges? Is it because of STP?
Not just STP, but all the data structures in the code are set up
1-N. For example, there is a pointer in the netdevice structure that
contains the bridge to handle the received packet. What would it mean
to be part of multiple bridges? Would received packets be process N times
by each bridge?
> If I am not using STP - can I change the code to have the same physical
> port in 2 VLANs? Is that a safe change?
Probably not. What are you trying to do? Might to be bridge the
physical LAN and do any filtering based on tag using bridge-filtering
(ebtables).
--
Stephen Hemminger mailto:shemminger@osdl.org
Open Source Development Lab http://developer.osdl.org/shemminger
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bridge] Re: Adding same physical port to multiple bridges
2004-01-28 18:01 ` [Bridge] " Stephen Hemminger
@ 2004-01-29 1:38 ` Josh Lehan
2005-05-26 18:41 ` Stephen Hemminger
0 siblings, 1 reply; 4+ messages in thread
From: Josh Lehan @ 2004-01-29 1:38 UTC (permalink / raw)
To: bridge
Stephen Hemminger wrote:
> Probably not. What are you trying to do? Might to be bridge the
> physical LAN and do any filtering based on tag using bridge-filtering
> (ebtables).
I also have a need to add the same physical port to multiple bridges,
but my reason is different.
I have a block of static IP addresses, but instead of having a separate
routing subnet for the gateway, my gateway has been placed on one of my
own static IP addresses! So, I need to have a bridge in order to do
proper firewalling, since both filtered and unfiltered traffic must flow
on the same subnet.
Here is my network:
eth0 = to gateway, raw unfirewalled IP packets
(IP address is on the same subnet as the rest of my static IP addresses)
| br0
eth1 = to the rest of my machines on my static IP addresses
eth2 = additional machines on private IP addresses (via NAT)
(on a completely different subnet, using private IP addresses)
I have successfully firewalled my other static IP addresses by bridging
eth0 and eth1 together into br0. This works beautifully. None of my
machines have connection problems, and they are being defended by a
firewall.
However, for gaming purposes, I'd like to bridge eth1 and eth2 also
together. This is because non-IP protocols (such as IPX/SPX, used by
many games) are not routed across the subnets.
What would be really neat is if I could filter by protocol:
IP on eth1 = bridge to eth0/eth1
Non-IP on eth1 = bridge to eth1/eth2
I don't think the current bridging code supports this.
A workaround would be to find (or write) a simple utility that listens
to all non-IP packets coming in on both eth1 and eth2, and blindly
echoes the raw packets onto the other interface, so that the two
interfaces effectively become bridged with regards to non-IP packets.
This would be all done in userspace, so as not to interfere with the
kernel bridging code. Does such a program already exist?
Josh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bridge] Re: Adding same physical port to multiple bridges
2004-01-29 1:38 ` Josh Lehan
@ 2005-05-26 18:41 ` Stephen Hemminger
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2005-05-26 18:41 UTC (permalink / raw)
To: Josh Lehan; +Cc: bridge
On Wed, 28 Jan 2004 17:38:26 -0800
Josh Lehan <bridge@krellan.com> wrote:
> Stephen Hemminger wrote:
>
> > Probably not. What are you trying to do? Might to be bridge the
> > physical LAN and do any filtering based on tag using bridge-filtering
> > (ebtables).
>
> I also have a need to add the same physical port to multiple bridges,
> but my reason is different.
>
> I have a block of static IP addresses, but instead of having a separate
> routing subnet for the gateway, my gateway has been placed on one of my
> own static IP addresses! So, I need to have a bridge in order to do
> proper firewalling, since both filtered and unfiltered traffic must flow
> on the same subnet.
>
> Here is my network:
>
> eth0 = to gateway, raw unfirewalled IP packets
> (IP address is on the same subnet as the rest of my static IP addresses)
> | br0
> eth1 = to the rest of my machines on my static IP addresses
>
> eth2 = additional machines on private IP addresses (via NAT)
> (on a completely different subnet, using private IP addresses)
>
> I have successfully firewalled my other static IP addresses by bridging
> eth0 and eth1 together into br0. This works beautifully. None of my
> machines have connection problems, and they are being defended by a
> firewall.
>
> However, for gaming purposes, I'd like to bridge eth1 and eth2 also
> together. This is because non-IP protocols (such as IPX/SPX, used by
> many games) are not routed across the subnets.
>
> What would be really neat is if I could filter by protocol:
> IP on eth1 = bridge to eth0/eth1
> Non-IP on eth1 = bridge to eth1/eth2
>
> I don't think the current bridging code supports this.
>
> A workaround would be to find (or write) a simple utility that listens
> to all non-IP packets coming in on both eth1 and eth2, and blindly
> echoes the raw packets onto the other interface, so that the two
> interfaces effectively become bridged with regards to non-IP packets.
> This would be all done in userspace, so as not to interfere with the
> kernel bridging code. Does such a program already exist?
>
Put them all in one bridge and write filter rules (ebtables) to do what
you want.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-26 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 1:10 [Bridge] Adding same physical port to multiple bridges Abhijit Kumbhare
2004-01-28 18:01 ` [Bridge] " Stephen Hemminger
2004-01-29 1:38 ` Josh Lehan
2005-05-26 18:41 ` 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.