From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49880 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrGvS-0000Qi-Q9 for qemu-devel@nongnu.org; Sun, 20 Feb 2011 16:34:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrGvR-0001R1-Qq for qemu-devel@nongnu.org; Sun, 20 Feb 2011 16:34:42 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:50399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrGvR-0001PB-DP for qemu-devel@nongnu.org; Sun, 20 Feb 2011 16:34:41 -0500 From: Arnd Bergmann Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? Date: Sun, 20 Feb 2011 22:33:37 +0100 References: <4D6151CF.3070104@web.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102202233.37208.arnd@arndb.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: Jan Kiszka , qemu-devel@nongnu.org On Sunday 20 February 2011, Gerhard Wiesinger wrote: > >> qemu-system-x86_64 ... some params ... -net > >> nic,model=e1000,macaddr=1a:46:0b:ca:bc:7c -net tap,fd=3 3<>/dev/tap10 > >> > >> Seems to me quite logically because macvtap0 (and not macvlan0) is > >> associated with /dev/tap10 but with another mac address set in KVM. > >> > >> Any furher ideas? > > > > As you already noticed: you mixed up the MAC addresses. KVM's must be > > the same as used for its frontend macvtap. The macvlan is only for the > > host and has a separate one. > > I think I did everyting right in the last 1st try but it still didn't > work: > 1.) macvtap0: MAC: 1a:46:0b:ca:bc:7b > 2.) macvlan0: MAC: 1a:46:0b:ca:bc:7c, 192.168.0.23 > 3.) KVM: MAC: 1a:46:0b:ca:bc:7b, assigned IP from DHCP: 1a:46:0b:ca:bc:7b > (looks like an IP address conflict inside guest and outside?) > > That should be as you explained, right? > The qemu command above has the 7c mac address, which does not match. Do you see the interface in the guest using "ip link show" ? Arnd