From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIwUB-0004Zv-46 for qemu-devel@nongnu.org; Tue, 15 Jul 2008 22:11:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIwUA-0004Zj-IP for qemu-devel@nongnu.org; Tue, 15 Jul 2008 22:11:18 -0400 Received: from [199.232.76.173] (port=39111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIwUA-0004Zg-F6 for qemu-devel@nongnu.org; Tue, 15 Jul 2008 22:11:18 -0400 Received: from wf-out-1314.google.com ([209.85.200.174]:62914) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIwUA-0005mH-6O for qemu-devel@nongnu.org; Tue, 15 Jul 2008 22:11:18 -0400 Received: by wf-out-1314.google.com with SMTP id 27so5538409wfd.4 for ; Tue, 15 Jul 2008 19:11:17 -0700 (PDT) Message-ID: <487D58BF.1070805@quinthar.com> Date: Tue, 15 Jul 2008 19:11:11 -0700 From: David Barrett MIME-Version: 1.0 Subject: Re: [Qemu-devel] Two taps, same IP? References: <487D510C.4070106@quinthar.com> <487D5287.1080707@codemonkey.ws> In-Reply-To: <487D5287.1080707@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Anthony Liguori wrote: > David Barrett wrote: >> I'm considering a tap-based alternative to the -redir patch I proposed >> earlier, but I'm just not quite getting how it works. In particular, >> I'm able to access the webserver on one image just fine, but not the >> other: wget fails with "Connecting to 172.20.0.3:80... failed: No >> route to host." >> >> Can you explain why and set me straight? >> >> sudo qemu -kernel-kqemu -net nic,vlan=0 -net tap,vlan=0 image0.raw >> sudo qemu -kernel-kqemu -net nic,vlan=0 -net tap,vlan=0 image1.raw > > You need to pass a unique mac address for each guest. You're probably > getting mac address collisions. Hm, you're right, they had the same MAC address. Unfortunately fixing that had no effect. Now I'm launching with: sudo qemu -kernel-kqemu -net nic,vlan=0,macaddr=00:00:00:00:00:00 -net tap,vlan=0 image0.raw sudo qemu -kernel-kqemu -net nic,vlan=0,macaddr=00:00:00:00:00:11 -net tap,vlan=0 image1.raw I'm still able to wget image0, but so long as it's operational I can't wget image1. Like before, shutting down image0 enables wget access to image1. Looking at ipconfig in the both guests show that the MAC address is being picked up correctly, so it must be something else. Any other ideas? Thanks! -david