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] How to make TCP/IP applications run on guest OS?
Date: Wed, 2 Jan 2013 17:00:59 +0100	[thread overview]
Message-ID: <20130102160059.GD12357@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CABurPef9CUYBn5axZsg0RYmgaU7MMB4n5cYhiBo6itomOxgKUg@mail.gmail.com>

On Wed, Dec 19, 2012 at 09:54:32PM +0800, GaoYi wrote:
> Hi all,
> 
>    I have bridged the network of the host. There was one br0 and several
> taps on it. When I started up a guest using:
> 
>                      #kvm -hda ubuntu.img -localtime -m 1G  -net nic, -net
> tap,ifname=tap0,script=no
> 
>    The guest can ping to other VMs or physical PCs within the same LAN.
> However, when I tried to communicate with other VMs/PCs using TCP/IP,
> the incoming IP at the receiver side is the same as the host IP instead of
> the VM's IP. Then how to configure the network so that
> the TCP/IP applications run well just like the phsical PC?

libvirt/virt-manager can set up the network for you.  I suggest using
them if you're having issues configuring bridging.

There is some basic information here but you'll find specifics if you do
a web search for "qemu bridging" or similar:
http://wiki.qemu.org/Documentation/Networking

Stefan

      reply	other threads:[~2013-01-02 16:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 13:54 [Qemu-devel] How to make TCP/IP applications run on guest OS? GaoYi
2013-01-02 16:00 ` 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=20130102160059.GD12357@stefanha-thinkpad.redhat.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).