in this case you are creating STP loop and enable of STP will disable either eth1 or eth0.

what are you trying achieve ? Is it just sending packets over both ethernet interfaces ?

you better bond those two ethernet interfaces. you need switch configuration for proper incoming traffic flow.
__
Tharindu "Rukshan" Bamunuarachchi






On Wed, Jul 6, 2011 at 8:29 PM, jiangtao.jit <jiangtao.jit@gmail.com> wrote:
dear all:

i have a x86 PC and i use it as a router
the kernel is 2.6.38

there are two NICs: eth0 and eth1

i configed eth0 as 10.1.0.1
and eth1 as 11.1.0.1
Linux will route between these two cards
and it worked ok in the old days

but recently, i had added a new NIC as eth2 for LAN
so i add a bridge br0 and config it as 10.1.0.1
then i configed eth0 and eth2 under br0
no ip on eth0 now
like
br0(10.1.0.1)             eth1(11.1.0.1)
    /           \
 eth0          eth2
 |               |
LAN           LAN

i expected that the performance will be better
but unfortunately things become worse

the PC lost packets now

at first, i think maybe there is a loop Under br0, so i disconnected the wire on eth2 or eth0
nothing changed, packets still lost

then i remove br0
config is as before
its'
           eth0(10.1.0.1)          eth1(11.1.0.1)
            |
           LAN

then everthing becomes fine, no packet lost

i can't explain why,
any idea?

thanks

2011-07-06



jiangtao.jit


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies