From: Blue Swirl <blauwirbel@gmail.com>
To: Amitava Shee <amitava.shee@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] user-mode networking not allowing internet traffic
Date: Wed, 15 Jun 2011 22:37:06 +0300 [thread overview]
Message-ID: <BANLkTi=SqLdtKBx6R_Qzf+_LW+a8O72oRQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTinG_UJykxnbGup2d0Hdxw=T_VmYxg@mail.gmail.com>
On Wed, Jun 15, 2011 at 9:12 PM, Amitava Shee <amitava.shee@gmail.com> wrote:
> My ubuntu 11.04 guest is not able to connect to the internet when launched
> as -net user. Any help is much appreciated.
>
> qemu command line
> ==============
> amitava@bonjovi:/var/vms$ qemu-system-x86_64 -m 512 -drive
> index=0,media=disk,if=virtio,file=ub2.qcow2,boot=on -vnc :0 -monitor stdio
> -net nic,model=virtio,vlan=1 -net user,vlan=1,hostname=ubuntu2
>
> ifconfig output in guest
> =================
> amitava@ubuntu2:~$ ifconfig eth0
> eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56
> inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
> inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:11 errors:0 dropped:0 overruns:0 frame:0
> TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1984 (1.9 KB) TX bytes:1748 (1.7 KB)
>
> amitava@ubuntu2:~$ nslookup google
> Server: 10.0.2.3
> Address: 10.0.2.3#53
>
> Non-authoritative answer:
> Name: google.com
> Address: 74.125.115.104
> Name: google.com
> Address: 74.125.115.106
> Name: google.com
> Address: 74.125.115.105
> Name: google.com
> Address: 74.125.115.147
> Name: google.com
> Address: 74.125.115.103
> Name: google.com
> Address: 74.125.115.99
This and the IP address of the eth0 show that the connection is working.
> amitava@ubuntu2:~$ traceroute google.com
> traceroute to google.com (74.125.115.99), 30 hops max, 60 byte packets
> 1 10.0.2.2 (10.0.2.2) 0.469 ms 0.457 ms 0.453 ms
> 2 * * *
> 3 * * *
> 4 * * *
> 5 * * *
> 6 * * *
> 7 * * *
> 8 * * *
> 9 * * *
> 10 * * *
> 11 * * *
> 12 * * *
> 13 * * *
> 14 * * *
> 15 * * *
> 16 * * *
> 17 * * *
> 18 * * *
> 19 * * *
> 20 * * *
> 21 * * *
> 22 * * *
> 23 * * *
> 24 * * *
> 25 * * *
> 26 * * *
> 27 * * *
> 28 * * *
> 29 * * *
> 30 * * *
User mode network (SLIRP) only supports plain TCP and UDP, traceroute
and ping (which need ICMP) do not work.
next prev parent reply other threads:[~2011-06-15 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 18:12 [Qemu-devel] user-mode networking not allowing internet traffic Amitava Shee
2011-06-15 19:37 ` Blue Swirl [this message]
2011-06-16 3:15 ` Amitava Shee
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='BANLkTi=SqLdtKBx6R_Qzf+_LW+a8O72oRQ@mail.gmail.com' \
--to=blauwirbel@gmail.com \
--cc=amitava.shee@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).