qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: GaoYi <gaoyi709@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] VM Communications inner a network bridge
Date: Wed, 5 Sep 2012 08:06:53 +0100	[thread overview]
Message-ID: <CAJSP0QU7MSLSMLi47mzmsDr8h0oifF9bWpyQ-Uiu+ruYFb4Vvg@mail.gmail.com> (raw)
In-Reply-To: <CABurPecEmenidT9TkBYiwHNFurRDeJD=8DrZc4mz7Tqu-6AR8g@mail.gmail.com>

On Tue, Sep 4, 2012 at 1:50 PM, GaoYi <gaoyi709@gmail.com> wrote:
>     When 2 VMs are started on the same network bridge, will the TCP/IP
> packets between them still go through the router (actually these 2 VMs share
> the same physical network card)? If so, is it possible to just pass the
> packets inner the network card?

If you have 2 VMs using tap network interfaces on a Linux software
bridge, then packets will be passed between the tap interfaces.
Packets will not go onto the host's physical interface (e.g. eth0).

This is regular Ethernet bridge behavior: the bridge decides on which
port(s) to forward the packet based on its MAC address to port
mapping.

Stefan

      reply	other threads:[~2012-09-05  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04 12:50 [Qemu-devel] VM Communications inner a network bridge GaoYi
2012-09-05  7:06 ` Stefan Hajnoczi [this message]

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=CAJSP0QU7MSLSMLi47mzmsDr8h0oifF9bWpyQ-Uiu+ruYFb4Vvg@mail.gmail.com \
    --to=stefanha@gmail.com \
    --cc=gaoyi709@gmail.com \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).