All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] strange networking behaviour with a bridge in game
@ 2007-04-05 12:37 Peter Warasin
  2007-04-05 13:07 ` Andy Gospodarek
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Warasin @ 2007-04-05 12:37 UTC (permalink / raw)
  To: bridge

hi list

I have a strange problem here. Maybe it is normal behavior and i search
within the wrong direction. Probably someone here can give me a hint.

I have a device (rhel4 kernel 2.6.9) with 3 interfaces. 2 interfaces
(eth0, eth2) are bridged together (br0) and the bridge device has an ip
address assigned (192.168.11.15).
Another interface (eth1) has assigned 10.7.0.10.


So far so good. Everything is working well if traffic passes from
192.168.11.0/24 out to 10.7.0.0/24 if both networks are on different
switches.

The thing begins to become strange if both eth0 and eth1 are connected
on the same switch (eth2 is not connected). So i have both subnets on
the same switch (for testing purposes).
If i then would like to access 192.168.11.15, packets reach the device
through the interface eth1 instead of eth0/br0, which in fact is wrong.
The arp table on the client shows this also. 192.168.11.15 is assigned
to the mac adress of the interface eth1.

Needless to say that this happens only from time to time. If i cleanup
the arp table sometimes it went alright.

What's wrong with my installation?

Thank you in advance!

peter


-- 
:: e n d i a n
:: open source - open minds

:: peter warasin
:: http://www.endian.com   :: peter@endian.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bridge] strange networking behaviour with a bridge in game
  2007-04-05 12:37 [Bridge] strange networking behaviour with a bridge in game Peter Warasin
@ 2007-04-05 13:07 ` Andy Gospodarek
  2007-04-05 17:55   ` Peter Warasin
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Gospodarek @ 2007-04-05 13:07 UTC (permalink / raw)
  To: Peter Warasin; +Cc: bridge

On 4/5/07, Peter Warasin <peter@endian.it> wrote:
> hi list
>
> I have a strange problem here. Maybe it is normal behavior and i search
> within the wrong direction. Probably someone here can give me a hint.
>
> I have a device (rhel4 kernel 2.6.9) with 3 interfaces. 2 interfaces
> (eth0, eth2) are bridged together (br0) and the bridge device has an ip
> address assigned (192.168.11.15).
> Another interface (eth1) has assigned 10.7.0.10.
>
>
> So far so good. Everything is working well if traffic passes from
> 192.168.11.0/24 out to 10.7.0.0/24 if both networks are on different
> switches.
>
> The thing begins to become strange if both eth0 and eth1 are connected
> on the same switch (eth2 is not connected). So i have both subnets on
> the same switch (for testing purposes).
> If i then would like to access 192.168.11.15, packets reach the device
> through the interface eth1 instead of eth0/br0, which in fact is wrong.
> The arp table on the client shows this also. 192.168.11.15 is assigned
> to the mac adress of the interface eth1.
>
> Needless to say that this happens only from time to time. If i cleanup
> the arp table sometimes it went alright.
>
> What's wrong with my installation?
>
> Thank you in advance!
>
> peter
>
>
> --
> :: e n d i a n
> :: open source - open minds
>
> :: peter warasin
> :: http://www.endian.com   :: peter@endian.com
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>


Check out the ip sysctl/proc arp_ignore

net.ipv4.conf.tun0.arp_ignore = 0
net.ipv4.conf.eth0.arp_ignore = 0
net.ipv4.conf.lo.arp_ignore = 0
net.ipv4.conf.default.arp_ignore = 0
net.ipv4.conf.all.arp_ignore = 0

or

/proc/sys/net/ipv4/conf/tun0/arp_ignore
/proc/sys/net/ipv4/conf/eth0/arp_ignore
/proc/sys/net/ipv4/conf/lo/arp_ignore
/proc/sys/net/ipv4/conf/default/arp_ignore
/proc/sys/net/ipv4/conf/all/arp_ignore


arp_ignore - INTEGER
        Define different modes for sending replies in response to
        received ARP requests that resolve local target IP addresses:
        0 - (default): reply for any local target IP address, configured
        on any interface
        1 - reply only if the target IP address is local address
        configured on the incoming interface
        2 - reply only if the target IP address is local address
        configured on the incoming interface and both with the
        sender's IP address are part from same subnet on this interface
        3 - do not reply for local addresses configured with scope host,
        only resolutions for global and link addresses are replied
        4-7 - reserved
        8 - do not reply for all local addresses

        The max value from conf/{all,interface}/arp_ignore is used
        when ARP request is received on the {interface}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bridge] strange networking behaviour with a bridge in game
  2007-04-05 13:07 ` Andy Gospodarek
@ 2007-04-05 17:55   ` Peter Warasin
  2007-04-05 17:58     ` Andy Gospodarek
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Warasin @ 2007-04-05 17:55 UTC (permalink / raw)
  To: Andy Gospodarek; +Cc: bridge

hi andy

Andy Gospodarek wrote:
> On 4/5/07, Peter Warasin <peter@endian.it> wrote:
> Check out the ip sysctl/proc arp_ignore

wow!
this solved my problem.
thank you very much for your answer!

i will raise a statue for you :)

peter


-- 
:: e n d i a n
:: open source - open minds

:: peter warasin
:: http://www.endian.com   :: peter@endian.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bridge] strange networking behaviour with a bridge in game
  2007-04-05 17:55   ` Peter Warasin
@ 2007-04-05 17:58     ` Andy Gospodarek
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Gospodarek @ 2007-04-05 17:58 UTC (permalink / raw)
  To: Peter Warasin; +Cc: bridge

On 4/5/07, Peter Warasin <peter@endian.it> wrote:
> hi andy
>
> Andy Gospodarek wrote:
> > On 4/5/07, Peter Warasin <peter@endian.it> wrote:
> > Check out the ip sysctl/proc arp_ignore
>
> wow!
> this solved my problem.
> thank you very much for your answer!
>
> i will raise a statue for you :)
>

Hahahaha!  Glad that helped you out! :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-05 17:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 12:37 [Bridge] strange networking behaviour with a bridge in game Peter Warasin
2007-04-05 13:07 ` Andy Gospodarek
2007-04-05 17:55   ` Peter Warasin
2007-04-05 17:58     ` Andy Gospodarek

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.