performance about use Linux as a router

7 views
Skip to first unread message

jiangtao.jit

unread,
Jul 6, 2011, 11:12:14 AM7/6/11
to linux-kernel
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

_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org

Wizard

unread,
Jul 9, 2011, 12:39:49 AM7/9/11
to jiangtao.jit, linux-kernel

This topology is the same as your initial one.
You LAN means a hub?

> i can't explain why,
> any idea?
> thanks
>
> 2011-07-06
>
>
>
> jiangtao.jit
>
> _______________________________________________
> Linux 内核开发中文邮件列表
> Linux-...@zh-kernel.org
> http://zh-kernel.org/mailman/listinfo/linux-kernel
> Linux 内核开发中文社区: http://zh-kernel.org

--
Wizard

jiangtao.jit

unread,
Jul 11, 2011, 7:08:33 AM7/11/11
to Wizard, linux-kernel

already solved by bring STP on


>This topology is the same as your initial one.
>You LAN means a hub?

no, there are some L2 SWs

2011-07-11



jiangtao.jit



发件人: Wizard
发送时间: 2011-07-09 12:39:49
收件人: jiangtao.jit
抄送: linux-kernel
主题: Re: performance about use Linux as a router

vincent li

unread,
Jul 11, 2011, 11:43:38 PM7/11/11
to jiangtao.jit, linux-...@zh-kernel.org
already solved by bring STP on?
why? you can explain the issue detail. thanks.

jiangtao.jit

unread,
Jul 12, 2011, 9:45:02 AM7/12/11
to vincent li, linux-kernel

sorry
i have no idea of the exactly reason
i 'd posted the same issue on kernelnewbies
they told me there may be a loop and advised me to bring STP on
and it really worked
that's it

best regards


2011-07-12



jiangtao.jit



发件人: vincent li
发送时间: 2011-07-12 11:43:39
收件人: jiangtao.jit; linux-kernel
抄送:
主题: Re: Re: performance about use Linux as a router

already solved by bring STP on?
why? you can explain the issue detail. thanks.


在 2011年7月11日 下午7:08,jiangtao.jit <jiangt...@gmail.com>写道:


Reply all
Reply to author
Forward
0 new messages