Received: from eggs.gnu.org ([2001:4830:134:3::10]:55846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyZp4-0005Zc-ST for qemu-devel@nongnu.org; Sun, 14 Jul 2013 23:51:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyZp4-0007Tp-2d for qemu-devel@nongnu.org; Sun, 14 Jul 2013 23:51:38 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:46128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyZp3-0007Th-Sn for qemu-devel@nongnu.org; Sun, 14 Jul 2013 23:51:38 -0400 Received: by mail-pa0-f46.google.com with SMTP id fa11so10757257pad.19 for ; Sun, 14 Jul 2013 20:51:36 -0700 (PDT) Received: from aik.ozlabs.ibm.com (ibmaus65.lnk.telstra.net. [165.228.126.9]) by mx.google.com with ESMTPSA id tr10sm27064544pbc.22.2013.07.14.20.51.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 14 Jul 2013 20:51:35 -0700 (PDT) Message-ID: <51E371C2.2070505@ozlabs.ru> Date: Mon, 15 Jul 2013 13:51:30 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Question about qemu networking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Hi! I have 2 command lines which I believe should work the same way but they do not. I run qemu and do "dhclient ; ifconfig" in the guest. Run #1 assigns 10.0.2.15 and 10.0.2.16 (this is what I expected); runs #2/#3 assign 10.0.2.15 to both emulated interfaces in the guest. Is there any up-to-date description of how networking works in QEMU? Not sure it is a bug at all, may be some internal qemu kitchen. Thanks. Run #1: -net nic,model=virtio -net user,hostfwd=tcp::5000-:22 -net nic,model=virtio -net user,hostfwd=tcp::5010-:22 Run #2 - I use new "netdev" syntax for the second device: -net nic,model=virtio -net user,hostfwd=tcp::5000-:22 -netdev user,id=virtnet,hostfwd=tcp::5010-:22 -device virtio-net-pci,netdev=virtnet Run #3 - I use new "netdev" syntax for both devices: -netdev user,id=virtnet,hostfwd=tcp::5000-:22 -device virtio-net-pci,netdev=virtnet -netdev user,id=virtnet1,hostfwd=tcp::5010-:22 -device virtio-net-pci,netdev=virtnet1 -- Alexey