From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41888 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsVxw-00029a-7G for qemu-devel@nongnu.org; Thu, 24 Feb 2011 02:50:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsVxu-0005a8-Ug for qemu-devel@nongnu.org; Thu, 24 Feb 2011 02:50:24 -0500 Received: from david.siemens.de ([192.35.17.14]:30248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsVxu-0005Zt-Ik for qemu-devel@nongnu.org; Thu, 24 Feb 2011 02:50:22 -0500 Message-ID: <4D660DBA.8040208@siemens.com> Date: Thu, 24 Feb 2011 08:50:18 +0100 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? References: <4D622602.7070009@web.de> <201102211307.38714.arnd@arndb.de> <4D65035C.6070104@siemens.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: "qemu-devel@nongnu.org" , Arnd Bergmann On 2011-02-24 07:49, Gerhard Wiesinger wrote: > On Wed, 23 Feb 2011, Jan Kiszka wrote: >> Right, but if I set IP(eth0) == IP(macvlan0), I'm able to communicate >> between macvlan0 and mactapX, thus between guest and host. Just >> re-checked here, still works (after resolving the usual MAC address mess >> I caused by configuring manually). > > Thnx for the tipp. > > Did you use MAC(eth0) == MAC(macvlan0) or MAC(eth0) <> MAC(macvlan0) to > get it to work? The latter (I just let macvlan/tap choose their MACs). > > OK, that should be possible because of the layer2 "split brain" > implementation of macvlan/macvtap between lower interface (e.g. eth0) and > mavlan*/macvtap*. Therefore the macvlan*/macvtap* interfaces see only each > other and the outer world/eth0 is another distinct layer2 domain. > > My only concern is about layer3 (IP) and same IP address on the same host. > Because of the "split brain" there shouldn't be any problem from the > macvlan*/macvtap* point of view and also from the eth0 outside world view. > > But from the view of "localhost"/iptables/routing the kernel sees 2 > identical IP addresses. Which one is used on a local ping or local > connect? None of both, rather the lookback interface. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux