From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BayzW-0005uo-If for qemu-devel@nongnu.org; Thu, 17 Jun 2004 11:39:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BayzV-0005uU-2y for qemu-devel@nongnu.org; Thu, 17 Jun 2004 11:39:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BayzT-0005uN-Ep for qemu-devel@nongnu.org; Thu, 17 Jun 2004 11:39:48 -0400 Received: from [66.122.46.26] (helo=palo.lab.meiosys.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BayyB-0005Q9-M5 for qemu-devel@nongnu.org; Thu, 17 Jun 2004 11:38:28 -0400 Received: from free.fr (localhost.localdomain [127.0.0.1]) by palo.lab.meiosys.com (8.11.6/8.11.6) with ESMTP id i5HFd4o02886 for ; Thu, 17 Jun 2004 17:39:04 +0200 Message-ID: <40D1BB18.40304@free.fr> Date: Thu, 17 Jun 2004 17:39:04 +0200 From: Marc Vertes MIME-Version: 1.0 Subject: Re: [Qemu-devel] Can't see network under qemu 0.5.5 References: <1087396951.40d05c57252a0@www.raysa.org> <1087413230.29688.93.camel@elrond.ltgnet.com> <1087460530.40d154b2731af@www.raysa.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.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" : > >>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 >