From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51614 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsV2Q-0004kL-NZ for qemu-devel@nongnu.org; Thu, 24 Feb 2011 01:50:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsV2P-0004de-3z for qemu-devel@nongnu.org; Thu, 24 Feb 2011 01:50:58 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:44277 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsV2O-0004Lb-Jh for qemu-devel@nongnu.org; Thu, 24 Feb 2011 01:50:57 -0500 Date: Thu, 24 Feb 2011 07:49:01 +0100 (CET) From: Gerhard Wiesinger Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? In-Reply-To: <4D65035C.6070104@siemens.com> Message-ID: References: <4D622602.7070009@web.de> <201102211307.38714.arnd@arndb.de> <4D65035C.6070104@siemens.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel@nongnu.org, Arnd Bergmann 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? 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? I will try it out, too. Ciao, Gerhard -- http://www.wiesinger.com/