From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BRxuh-0005BY-I7 for qemu-devel@nongnu.org; Sun, 23 May 2004 14:41:35 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BRxgF-00020R-E8 for qemu-devel@nongnu.org; Sun, 23 May 2004 14:27:11 -0400 Received: from [38.113.3.51] (helo=snickers.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BRxJj-0004xd-0r for qemu-devel@nongnu.org; Sun, 23 May 2004 14:03:23 -0400 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by snickers.hotpop.com (Postfix) with SMTP id DCC1873720 for ; Sun, 23 May 2004 17:09:44 +0000 (UTC) Date: Sun, 23 May 2004 14:00:58 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] networking Message-ID: <20040523180058.GA664@jbrown.mylinuxbox.org> References: <20040522011010.7767fc2a.user05@kyberwelt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040522011010.7767fc2a.user05@kyberwelt.de> 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 Sat, May 22, 2004 at 01:10:10AM +0200, ich hier wrote: > > Hi! > > Something i did not understand until now (after playing for a while > with this nice piece of software :) ) is the usage of tun/tap devices. > As far as i understood, qemu (the running task) just allocates free > device-names (tunX) as needed and runs a script /etc/qemu-ifup (if > available) and thats it. "qemu -n other-script" will let you use a script other than /etc/qemu-ifup, if you want. > But is there any way, to tell qemu which exact (preconfigured) > devices to use? Or do i have to catch the allocated devicenames, > as qemu throws them at me (or my script :) ) and try to make > something useful with this names (such as bridging or routing)??? You could use "qemu -tun-fd fd", but I'm not sure how as I've never used it directly. The man page says that an example is available at http://bellard.org/qemu/tetrinet.html > It would be very nice, if there is some way (like in user-mode-linux > for example) to tell qemu with arguments, how to map each emulated > network-device to a predefined tun device. This way someone could > configure various sets of tundevices with fixed names. Management > would be much easier. > Also bridging of devices would be much cleaner and other tools which > use tun/tap devices could be hardwired (even with names like "tunX" > :) ) I prefer using VDE myself. It uses tap0 for ALL emulated machines on the network, instead of tun0 for machine 1, tun1 for machine 2, etc. No bridging required. Needs a bit more work to set up tho. > > THNX in advance for your answers. Maybe i just had tomatoes on my eyes. > (like we would say here in germany) > You can also try "qemu -user-net" if you wanted. Its not as good as tuntap, but a lot easier to set up. It also might be slightly buggier. > user05 > > > _______________________________________________ > 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.