All of lore.kernel.org
 help / color / mirror / Atom feed
From: jiangtao.jit@gmail.com (jiangtao.jit)
To: kernelnewbies@lists.kernelnewbies.org
Subject: performance about use Linux as a router
Date: Wed, 6 Jul 2011 19:17:41 +0800	[thread overview]
Message-ID: <201107061917393759139@gmail.com> (raw)

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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110706/a30d9182/attachment.html 

             reply	other threads:[~2011-07-06 11:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 11:17 jiangtao.jit [this message]
2011-07-06 12:09 ` performance about use Linux as a router Calvin Johnson
  -- strict thread matches above, loose matches on Subject: below --
2011-07-06 14:59 jiangtao.jit
2011-07-06 15:48 ` jiangtao.jit
2011-07-06 16:23   ` Kristof Provost
2011-07-07  2:44 ` Tharindu Rukshan Bamunuarachchi
2011-07-07 11:47   ` tao jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201107061917393759139@gmail.com \
    --to=jiangtao.jit@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.