Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CizWe-00012Y-8p for qemu-devel@nongnu.org; Mon, 27 Dec 2004 13:23:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CizWc-00011L-HG for qemu-devel@nongnu.org; Mon, 27 Dec 2004 13:23:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CizWc-00010G-7O for qemu-devel@nongnu.org; Mon, 27 Dec 2004 13:23:22 -0500 Received: from [64.105.49.83] (helo=claudius.sentinelchicken.org) by monty-python.gnu.org with smtp (Exim 4.34) id 1CizKu-0001s9-6X for qemu-devel@nongnu.org; Mon, 27 Dec 2004 13:11:16 -0500 Date: Mon, 27 Dec 2004 13:11:14 -0500 From: Tim Subject: Re: [Qemu-devel] Networking possibilities Message-ID: <20041227181114.GB20516@sentinelchicken.org> References: <001101c4ec0f$5ec240f0$8916fea9@freelance> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c4ec0f$5ec240f0$8916fea9@freelance> 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 > I would like to know if it is possible to run a few instances > of Qemu's ( ie a few guest OS'es ) and make them network > with one another ? In each of the instance there maybe > multiple network cards, I would like to be able to specify each > network card to go to which tun device and then allow another > instance to connect specifically to that particular tun device, > instead of only connected to the host OS. > > That's tun/tap devices are used to connect multiple instances > of qemu together or with the host OS. > > Bottomline I would like to be able to set up a farm of guest OS's > which could perform internetworking among each other. This is > extremely useful for testing/developing networking software. > Is it possible ? One possible way to do this would be to spawn all of your Qemu instances, each with their own TUN interface, then bridge the TUN interfaces together on the (linux) host. Linux bridging code comes standard with 2.6 kernels now (i believe), and I have used it before to bridge a Qemu TUN interface with a physical interface in the host before. I haven't tried putting together multiple TUN interfaces before though. There are several references online for how to do Linux bridging. If you can't find them through google, I can dig up a link. HTH, tim