From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKjzq-0007ib-OF for qemu-devel@nongnu.org; Mon, 03 May 2004 16:25:02 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKjz8-0006ae-6O for qemu-devel@nongnu.org; Mon, 03 May 2004 16:24:57 -0400 Received: from [38.113.3.51] (helo=snickers.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKjyx-0006DI-S0 for qemu-devel@nongnu.org; Mon, 03 May 2004 16:24:07 -0400 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by snickers.hotpop.com (Postfix) with SMTP id 4EDD971B65 for ; Mon, 3 May 2004 19:37:03 +0000 (UTC) Received: from jbrown.mylinuxbox.org (pcp02555028pcs.batlfl01.tn.comcast.net [68.60.22.179]) by smtp-2.hotpop.com (Postfix) with ESMTP id D0A783ED0DD for ; Mon, 3 May 2004 19:58:47 +0000 (UTC) Date: Mon, 3 May 2004 16:22:33 -0400 Subject: Re: [Qemu-devel] Question about tun/tap networking Message-ID: <20040503202233.GB8530@jbrown.mylinuxbox.org> References: <20040503030941.GA2865@jbrown.mylinuxbox.org> <1083584704.1931.3.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1083584704.1931.3.camel@localhost> From: jbrown106@phreaker.net (Jim C. Brown) 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 On Mon, May 03, 2004 at 01:45:04PM +0200, Arne Bernin wrote: > On Mon, 2004-05-03 at 05:09, Jim C. Brown wrote: > > Hi Jim, > > > I recommend using vde by Renzo Davoli instead of the default tuntap. > > I am able to network 2 instances of windows 98 (in separate qemu's) and > > minix 2.0.4 (in a hand-modified bochs). It worked without a hitch, and all > > the machines are on the same subnet. > > > > You still need forwarding to let the virtual machines see the lan or the > > internet, however. The plus with vde is that you don't need to set up routing > > for all these different tunN devices. (I use the Shorewall firewall, and using > > tun was a pain...vde means I just have to set up routing and masquerading > > for tap0, instead of for tun0, tun1, tun2, ...) > > > may you tell me how you set up your vde network ? I downloaded vde, > installed it, bootet 2 qemus (on the same subnet) and tried to ping each > other... I does not work, but i can ping the host they run on using a > tap0 device, and see the who-has... arp stuff while running tcpdump on > tap0. So it would be very interesting how you configured your vde_switch > qemu setup for multiple machines on the same vde_switch. > > thanks, > arne > > [/space/qemu/qemu-0.5.4/ $] su root [/space/qemu/qemu-0.5.4/ #] vde_switch -daemon -tap tap0 [/space/qemu/qemu-0.5.4/ #] ifconfig tap0 192.168.1.254 [/space/qemu/qemu-0.5.4/ #] chmod 777 /tmp/vde.ctl [/space/qemu/qemu-0.5.4/ #] exit [/space/qemu/qemu-0.5.4/ $] vdeq qemu -hda disk1.img This works, not only can I ping 2 different machines on the vde, I can also ping the LAN from the vde, and vice versa. (ifconfig seems to set up routing automagicly. Or was it something I put into shorewall...) Note that for teh guest OS, you need to set up 192.168.1.254 as the default gateway for just about everything. > > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://mail.nongnu.org/mailman/listinfo/qemu-devel -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.