Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Drf3s-0001Mc-D7 for qemu-devel@nongnu.org; Sun, 10 Jul 2005 12:53:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Drf3n-0001J7-9G for qemu-devel@nongnu.org; Sun, 10 Jul 2005 12:53:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drf3l-0001BV-5q for qemu-devel@nongnu.org; Sun, 10 Jul 2005 12:53:41 -0400 Received: from [83.241.133.2] (helo=filer.marasystems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Drf08-0005W9-I8 for qemu-devel@nongnu.org; Sun, 10 Jul 2005 12:49:56 -0400 Received: from localhost (henrik@localhost) by filer.marasystems.com (8.11.6/8.11.6) with ESMTP id j6AGgUm10076 for ; Sun, 10 Jul 2005 18:42:30 +0200 Date: Sun, 10 Jul 2005 18:42:30 +0200 (CEST) From: Henrik Nordstrom Subject: Re: [Qemu-devel] Connecting vde and LAN In-Reply-To: <42D11415.70106@gmx.de> Message-ID: References: <42D11415.70106@gmx.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 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. > So far I've experimented with bridging tap0 and eth0 so that the Qemu > guests are transparently on my LAN and get IPs from the LAN-wide DHCP > server. But this has the drawback that my host network interface is now > br0 instead of eth0 (that causes confusion at least for samba). Fix the Samba problem? Why does this cause problems for Samba? I run my qemu stations like this all the time, but not using Samba.. > 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). Correct. DHCP is Ethernet broadcast based, not IP. You could in theory run a DHCP proxy agent on your tap0 interface, and have the DHCP server configured with a suitable scope. But this does not give you addresses from your LAN. You could also run a local DHCP server on tap0, configured with the address scope you have set up proxy-arp for. But these addresses better be statically assigned to you, never handed out by the LAN DHCP server to anyone else in the LAN. But this doesn't provide true LAN access, only routed acces to the LAN (no broadcasts). Regards Henrik