From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrgUM-0005C9-56 for qemu-devel@nongnu.org; Sun, 10 Jul 2005 14:25:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrgU4-000552-Nw for qemu-devel@nongnu.org; Sun, 10 Jul 2005 14:24:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrgU1-00050E-H0 for qemu-devel@nongnu.org; Sun, 10 Jul 2005 14:24:53 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1DrgZf-0002XO-Lh for qemu-devel@nongnu.org; Sun, 10 Jul 2005 14:30:43 -0400 Message-ID: <42D16795.3090304@gmx.de> Date: Sun, 10 Jul 2005 20:23:17 +0200 From: Oliver Gerlich MIME-Version: 1.0 Subject: Re: [Qemu-devel] Connecting vde and LAN References: <42D11415.70106@gmx.de> <20050710173735.GA21204@jbrown.mylinuxbox.org> In-Reply-To: <20050710173735.GA21204@jbrown.mylinuxbox.org> Content-Type: text/plain; charset=ISO-8859-1 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim C. Brown schrieb: > On Sun, Jul 10, 2005 at 06:42:30PM +0200, Henrik Nordstrom wrote: > >>On Sun, 10 Jul 2005, Oliver Gerlich wrote: >> >> >>>what is the best solution to connect the vde "switch" to my real LAN so >>>that Qemu guests get IPs from my LAN-wide DHCP server? >> >>bridgeing of your ethernet interface and the TAP interface connecting to >>vde is undoubtly the best if you want to provide full access to the LAN. >> >> >>>Also I tried to set up IP forwarding between tap0 and eth0, but then the >>>Qemu guests aren't transparently on my LAN (and don't get the correct >>>config from the DHCP server). > > > The best solution is to use a vde_switch with libpcap and libnet. This allows > intercepting packets meant for the guests (via libnet) and forwarding them thru > vde. libpcap allows for packets in vde to be passed on to the lan. This also > allows for a sort of seamless bridging between host and guest lan. (Technically > a tap device is still required to be able to talk to the host, but my understanding > is that libpcap handles this automatically.) Plus, the nic remains eth0. > > I am not sure how libpcap and libnet would work with DHCP or ARP, but since > they work on the ethernet level I suppose a single dhcpd server on eth0 would > work in this case, but I am not 100% sure. > Sounds interesting! How do I set this up? Couldn't find anything on Google, and personally I have no idea how to do this :) Oliver -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC0WeTTFOM6DcNJ6cRAlH6AKCfIo99S6MMihOY5DUOpdOFxQaHdgCdG0+B 8POxg7Ufhc5QBU0Rg4WfyT8= =EC4W -----END PGP SIGNATURE-----