* [Bridge] Trouble with bridged interfaces
@ 2007-06-14 1:28 Roman Lisagor
2007-06-15 16:21 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: Roman Lisagor @ 2007-06-14 1:28 UTC (permalink / raw)
To: bridge
Hi,
We need to bridge several interfaces together, but still retain the
ability to communicate through the individual interfaces. So for
example, we have eth0 and eth1 bridged and we bind IP addresses to both
of them, in order to inject packets into communication between two
devices connected to our interfaces.
It seems that several problems arise intermittently:
1. When sending ping requests, replies sometimes come in on eth0/1, but
sometimes on br0. We can work around this, but it would be great to get
some idea of why and when this happens (and possibly whether we can
prevent it from occurring);
2. Occasionally, ARP requests sent by external devices for the IPs of
eth0/1 are ignored.
We are running Fedora Core 6 (2.6.13-15-smp).
Any ideas?
Thanks in advance for your help.
Roman
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] Trouble with bridged interfaces
2007-06-14 1:28 [Bridge] Trouble with bridged interfaces Roman Lisagor
@ 2007-06-15 16:21 ` Stephen Hemminger
2007-06-15 22:39 ` Brad Dameron
2007-06-15 23:24 ` Roman Lisagor
0 siblings, 2 replies; 6+ messages in thread
From: Stephen Hemminger @ 2007-06-15 16:21 UTC (permalink / raw)
To: Roman Lisagor; +Cc: bridge
On Wed, 13 Jun 2007 18:28:07 -0700
"Roman Lisagor" <RLisagor@wurldtech.com> wrote:
> Hi,
>
> We need to bridge several interfaces together, but still retain the
> ability to communicate through the individual interfaces. So for
> example, we have eth0 and eth1 bridged and we bind IP addresses to both
> of them, in order to inject packets into communication between two
> devices connected to our interfaces.
>
Addresses in Linux aren't assigned to interfaces.
Look up the regular questions that come up about Linux responding
to ARP on the wrong interface.
> It seems that several problems arise intermittently:
>
> 1. When sending ping requests, replies sometimes come in on eth0/1, but
> sometimes on br0. We can work around this, but it would be great to get
> some idea of why and when this happens (and possibly whether we can
> prevent it from occurring);
>
> 2. Occasionally, ARP requests sent by external devices for the IPs of
> eth0/1 are ignored.
>
> We are running Fedora Core 6 (2.6.13-15-smp).
> Any ideas?
>
> Thanks in advance for your help.
>
> Roman
Go up your requirements, why do you need to do things this way?
There may be better alternatives
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] Trouble with bridged interfaces
2007-06-15 16:21 ` Stephen Hemminger
@ 2007-06-15 22:39 ` Brad Dameron
2007-06-15 23:24 ` Roman Lisagor
1 sibling, 0 replies; 6+ messages in thread
From: Brad Dameron @ 2007-06-15 22:39 UTC (permalink / raw)
To: bridge
On Fri, 2007-06-15 at 09:21 -0700, Stephen Hemminger wrote:
> On Wed, 13 Jun 2007 18:28:07 -0700
> "Roman Lisagor" <RLisagor@wurldtech.com> wrote:
>
> > Hi,
> >
> > We need to bridge several interfaces together, but still retain the
> > ability to communicate through the individual interfaces. So for
> > example, we have eth0 and eth1 bridged and we bind IP addresses to both
> > of them, in order to inject packets into communication between two
> > devices connected to our interfaces.
> >
>
>
> Addresses in Linux aren't assigned to interfaces.
> Look up the regular questions that come up about Linux responding
> to ARP on the wrong interface.
>
> > It seems that several problems arise intermittently:
> >
> > 1. When sending ping requests, replies sometimes come in on eth0/1, but
> > sometimes on br0. We can work around this, but it would be great to get
> > some idea of why and when this happens (and possibly whether we can
> > prevent it from occurring);
> >
> > 2. Occasionally, ARP requests sent by external devices for the IPs of
> > eth0/1 are ignored.
> >
> > We are running Fedora Core 6 (2.6.13-15-smp).
> > Any ideas?
> >
> > Thanks in advance for your help.
> >
> > Roman
You should look at using ebtables to control the ARP. This is how we
handle it.
Brad Dameron
Systems Engineer
Clearw're
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [Bridge] Trouble with bridged interfaces
2007-06-15 16:21 ` Stephen Hemminger
2007-06-15 22:39 ` Brad Dameron
@ 2007-06-15 23:24 ` Roman Lisagor
2007-06-16 0:20 ` Stephen Hemminger
1 sibling, 1 reply; 6+ messages in thread
From: Roman Lisagor @ 2007-06-15 23:24 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: bridge
Hi Stephen,
We are doing this for a network testing product. Our box sits between
two devices (e.g. one connected to eth0 and one to eth1) which
communicate with each other, so we bridge the two interfaces to maintain
communication between the two sides. One of the devices (connected to
eth0) is under test so we need to send and receive traffic to and from
that device and want to be sure that none of the _test_ traffic is also
going to eth1. Raw sockets are used to create the traffic on eth0.
In most cases this works well, but in some cases (which are very
difficult to reproduce or determine the pattern for) we see incoming
packets on the bridge instead of the interface.
Also, what do you mean when you say that addresses are not assigned to
interfaces? (Isn't that the result of running "ifconfig ethX
ip.ip.ip.ip"?)
Thanks again,
Roman.
-----Original Message-----
From: Stephen Hemminger [mailto:shemminger@linux-foundation.org]
Sent: Friday, June 15, 2007 9:21 AM
To: Roman Lisagor
Cc: bridge@linux-foundation.org
Subject: Re: [Bridge] Trouble with bridged interfaces
On Wed, 13 Jun 2007 18:28:07 -0700
"Roman Lisagor" <RLisagor@wurldtech.com> wrote:
> Hi,
>
> We need to bridge several interfaces together, but still retain the
> ability to communicate through the individual interfaces. So for
> example, we have eth0 and eth1 bridged and we bind IP addresses to
both
> of them, in order to inject packets into communication between two
> devices connected to our interfaces.
>
Addresses in Linux aren't assigned to interfaces.
Look up the regular questions that come up about Linux responding
to ARP on the wrong interface.
> It seems that several problems arise intermittently:
>
> 1. When sending ping requests, replies sometimes come in on eth0/1,
but
> sometimes on br0. We can work around this, but it would be great to
get
> some idea of why and when this happens (and possibly whether we can
> prevent it from occurring);
>
> 2. Occasionally, ARP requests sent by external devices for the IPs of
> eth0/1 are ignored.
>
> We are running Fedora Core 6 (2.6.13-15-smp).
> Any ideas?
>
> Thanks in advance for your help.
>
> Roman
Go up your requirements, why do you need to do things this way?
There may be better alternatives
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] Trouble with bridged interfaces
2007-06-15 23:24 ` Roman Lisagor
@ 2007-06-16 0:20 ` Stephen Hemminger
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2007-06-16 0:20 UTC (permalink / raw)
To: Roman Lisagor; +Cc: bridge
On Fri, 15 Jun 2007 16:24:56 -0700
"Roman Lisagor" <RLisagor@wurldtech.com> wrote:
> Hi Stephen,
>
> We are doing this for a network testing product. Our box sits between
> two devices (e.g. one connected to eth0 and one to eth1) which
> communicate with each other, so we bridge the two interfaces to maintain
> communication between the two sides. One of the devices (connected to
> eth0) is under test so we need to send and receive traffic to and from
> that device and want to be sure that none of the _test_ traffic is also
> going to eth1. Raw sockets are used to create the traffic on eth0.
>
> In most cases this works well, but in some cases (which are very
> difficult to reproduce or determine the pattern for) we see incoming
> packets on the bridge instead of the interface.
>
> Also, what do you mean when you say that addresses are not assigned to
> interfaces? (Isn't that the result of running "ifconfig ethX
> ip.ip.ip.ip"?)
>
> Thanks again,
> Roman.
>
A per previous suggestion, use ebtables. It is the best way
to get selective traffic control or any other hacks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bridge] Trouble with bridged interfaces
@ 2007-06-14 17:22 Roman Lisagor
0 siblings, 0 replies; 6+ messages in thread
From: Roman Lisagor @ 2007-06-14 17:22 UTC (permalink / raw)
To: bridge
Hi,
We need to bridge several interfaces together, but still retain the
ability to communicate through the individual interfaces. So for
example, we have eth0 and eth1 bridged and we bind IP addresses to both
of them, in order to inject packets into communication between two
devices connected to our interfaces.
It seems that several problems arise intermittently:
1. When sending ping requests, replies sometimes come in on eth0/1, but
sometimes on br0. We can work around this, but it would be great to get
some idea of why and when this happens (and possibly whether we can
prevent it from occurring);
2. Occasionally, ARP requests sent by external devices for the IPs of
eth0/1 are ignored.
We are running Fedora Core 6 (2.6.13-15-smp).
Any ideas?
Thanks in advance for your help.
Roman
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-06-16 0:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-14 1:28 [Bridge] Trouble with bridged interfaces Roman Lisagor
2007-06-15 16:21 ` Stephen Hemminger
2007-06-15 22:39 ` Brad Dameron
2007-06-15 23:24 ` Roman Lisagor
2007-06-16 0:20 ` Stephen Hemminger
-- strict thread matches above, loose matches on Subject: below --
2007-06-14 17:22 Roman Lisagor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox