All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Vertes <mvertes@free.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Can't see network under qemu 0.5.5
Date: Thu, 17 Jun 2004 17:39:04 +0200	[thread overview]
Message-ID: <40D1BB18.40304@free.fr> (raw)
In-Reply-To: 1087460530.40d154b2731af@www.raysa.org

Here is the /etc/qemu-ifup I use to perform full network configuration:

-----------------------------------------------------
#!/bin/sh
#
# Inside the qemu VM, the following commands are required:
#
# ifconfig eth0 172.20.0.2
# route add default gw 172.20.0.1
#
intf=$1
eth0_ipaddr=$(ifconfig eth0 | awk '/inet addr:/ {print substr($2, 6)}')

sudo sh << EOT
/sbin/ifconfig $intf 172.20.0.1
/sbin/route add -host 172.20.0.2 $intf
/usr/sbin/iptables -t nat -F
/usr/sbin/iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to $eth0_ipaddr
echo 1 > /proc/sys/net/ipv4/ip_forward
EOT
---------------------------------------------------

Marc

Ludovic Gele wrote:

>Selon "Leonard T. Erwine" <lerwine@teamlightning.com>:
>
>>I have this problem with using qemu 0.5.5 under windows 98.
>>
>>I can ping the interface's own IP but can't see beyond that.
>>
>>I have screen captures of my settings and other relevant system data at
>>http://www.lennyerwine.com/qemu-net.
>>
>>If anyone can help me with this problem, I will be GLAD to transform the
>>aforementioned web page into a help document. If I can get past this, I
>>plan on doing this for Win2K, Linux as well.
>>
>
>Have you activate the ipforwarding on your host system? And the NAT?
>
>
>
>_______________________________________________
>Qemu-devel mailing list
>Qemu-devel@nongnu.org
>http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

  reply	other threads:[~2004-06-17 15:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-16 14:42 [Qemu-devel] some help Ludovic Gele
2004-06-16 19:13 ` [Qemu-devel] Can't see network under qemu 0.5.5 Leonard T. Erwine
2004-06-17  8:22   ` Ludovic Gele
2004-06-17 15:39     ` Marc Vertes [this message]
2004-06-18 20:58       ` Leonard T. Erwine
2004-06-18 20:34     ` Leonard T. Erwine
2004-06-16 20:26 ` [Qemu-devel] Useful Q&A Benjamin Brown
2004-06-16 20:35   ` Bartosz Fabianowski
2004-06-17 10:42     ` Antony T Curtis
2004-06-16 21:02   ` Fabrice Bellard
2004-06-16 21:16     ` malc
2004-06-16 21:41     ` Benjamin Brown
2004-06-17  8:25       ` Johannes Schindelin
2004-06-19 17:35         ` Benjamin Brown
2004-06-19 16:34       ` [Qemu-devel] Mounting a disk image under Linux Benjamin Brown
2004-06-19 16:39         ` Grzegorz Kulewski
2004-06-19 16:40         ` Gianni Tedesco
2004-06-19 17:16           ` Benjamin Brown
2004-06-19 17:31         ` Jim C. Brown
2004-06-19 20:00           ` Gianni Tedesco
2004-06-19 23:48             ` Jim C. Brown
2004-06-20  8:20               ` Mulyadi Santosa

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=40D1BB18.40304@free.fr \
    --to=mvertes@free.fr \
    --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 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.