All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] Bridge not functional after disconnect / connect
@ 2008-01-30 22:15 Alex Shnitman
  2008-01-30 22:22 ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Shnitman @ 2008-01-30 22:15 UTC (permalink / raw)
  To: bridge

Hi,

I have two NICs on my machine, one connected to a router and is always up, and the other connected back-to-back to a laptop, and this one I disconnect and connect all the time. I created a bridge on top of these two interfaces, and it functions fine, except when I disconnect and connect the laptop, I have to remove it from the bridge and add it back before it starts bridging! In other words, I need to do "brctl delif br0 eth0; brctl addif br0 eth0".

The output of "brctl showmacs br0" and "brctl showstp br0" looks the same and perfectly correct before the removal/adding and after it. From playing around with Wireshark it seems to me that before delif/addif only broadcasts are received from the laptop; unicast packets do not appear there. I got all zeros in /proc/sys/net/bridge/*. It looks like everything is configured correctly.

Any idea at all why I see this behavior? Any tips as to how I might debug it?

The kernel I'm running is 2.6.18 from Debian Etch.

Please, if any more information is required, let me know. I don't want to spam the list with long dumps of everything if it's not needed.

Thanks in advance,
--Alex





      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Bridge] Bridge not functional after disconnect / connect
@ 2008-01-31  8:44 Alex Shnitman
  2008-01-31  9:59 ` Malcolm Scott
  2008-01-31 16:50 ` Stephen Hemminger
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Shnitman @ 2008-01-31  8:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

Hi,

lspci gives this:

02:05.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)
02:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

The first one is the one having the trouble. Is this hardware known to be problematic?

Thanks,
--Alex


----- Original Message ----
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Alex Shnitman <alexta69@yahoo.com>
Cc: bridge@lists.linux-foundation.org
Sent: Thursday, January 31, 2008 12:22:22 AM
Subject: Re: [Bridge] Bridge not functional after disconnect / connect


On 
Wed, 
30 
Jan 
2008 
14:15:11 
-0800 
(PST)
Alex 
Shnitman 
<alexta69@yahoo.com> 
wrote:

> 
Hi,
> 
> 
I 
have 
two 
NICs 
on 
my 
machine, 
one 
connected 
to 
a 
router 
and 
is 
always 
up, 
and 
the 
other 
connected 
back-to-back 
to 
a 
laptop, 
and 
this 
one 
I 
disconnect 
and 
connect 
all 
the 
time. 
I 
created 
a 
bridge 
on 
top 
of 
these 
two 
interfaces, 
and 
it 
functions 
fine, 
except 
when 
I 
disconnect 
and 
connect 
the 
laptop, 
I 
have 
to 
remove 
it 
from 
the 
bridge 
and 
add 
it 
back 
before 
it 
starts 
bridging! 
In 
other 
words, 
I 
need 
to 
do 
"brctl 
delif 
br0 
eth0; 
brctl 
addif 
br0 
eth0".
> 
> 
The 
output 
of 
"brctl 
showmacs 
br0" 
and 
"brctl 
showstp 
br0" 
looks 
the 
same 
and 
perfectly 
correct 
before 
the 
removal/adding 
and 
after 
it. 
From 
playing 
around 
with 
Wireshark 
it 
seems 
to 
me 
that 
before 
delif/addif 
only 
broadcasts 
are 
received 
from 
the 
laptop; 
unicast 
packets 
do 
not 
appear 
there. 
I 
got 
all 
zeros 
in 
/proc/sys/net/bridge/*. 
It 
looks 
like 
everything 
is 
configured 
correctly.
> 
> 
Any 
idea 
at 
all 
why 
I 
see 
this 
behavior? 
Any 
tips 
as 
to 
how 
I 
might 
debug 
it?
> 
> 
The 
kernel 
I'm 
running 
is 
2.6.18 
from 
Debian 
Etch.

What 
hardware? 
There 
were 
many 
fixes 
since 
that 
old 
kernel.

-- 
Stephen 
Hemminger 
<stephen.hemminger@vyatta.com>





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Bridge] Bridge not functional after disconnect / connect
@ 2008-01-31 11:31 Alex Shnitman
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Shnitman @ 2008-01-31 11:31 UTC (permalink / raw)
  To: Malcolm Scott; +Cc: bridge

In fact, it's the skge driver. I'll try to upgrade the kernel to 2.6.22 (the latest one available in etch backports) and report the results.

Thanks,
--Alex


----- Original Message ----
From: Malcolm Scott <Malcolm.Scott@cl.cam.ac.uk>
To: Alex Shnitman <alexta69@yahoo.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>; bridge@lists.linux-foundation.org
Sent: Thursday, January 31, 2008 11:59:34 AM
Subject: Re: [Bridge] Bridge not functional after disconnect / connect


At 
00:44 
today, 
Alex 
Shnitman 
wrote:

> 
02:05.0 
Ethernet 
controller: 
Marvell 
Technology 
Group 
Ltd. 
88E8001 
Gigabit 
Ethernet 
Controller 
(rev 
13)

Is 
that 
the 
sky2 
driver?  
That 
is 
in 
my 
experience 
pretty 
buggy 
until 
about 
2.6.22.

-- 
Malcolm 
Scott
Research 
Assistant
University 
of 
Cambridge 
Computer 
Laboratory






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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

end of thread, other threads:[~2008-01-31 16:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 22:15 [Bridge] Bridge not functional after disconnect / connect Alex Shnitman
2008-01-30 22:22 ` Stephen Hemminger
  -- strict thread matches above, loose matches on Subject: below --
2008-01-31  8:44 Alex Shnitman
2008-01-31  9:59 ` Malcolm Scott
2008-01-31 16:50 ` Stephen Hemminger
2008-01-31 11:31 Alex Shnitman

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.