From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EL6dG-00062l-VX for qemu-devel@nongnu.org; Thu, 29 Sep 2005 18:12:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EL6dA-000600-77 for qemu-devel@nongnu.org; Thu, 29 Sep 2005 18:11:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EL6d9-0005hx-8H for qemu-devel@nongnu.org; Thu, 29 Sep 2005 18:11:55 -0400 Received: from [203.190.192.17] (helo=wasp.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EL6IF-0005CT-Ut for qemu-devel@nongnu.org; Thu, 29 Sep 2005 17:50:20 -0400 Message-ID: <433C61B7.6070804@wasp.net.au> Date: Fri, 30 Sep 2005 01:50:47 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] about DHCP server in qemu References: <1128006042.433c019a295a8@webmail.alinto.com> <20050929203431.GA4684@jbrown.mylinuxbox.org> In-Reply-To: <20050929203431.GA4684@jbrown.mylinuxbox.org> 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 Jim C. Brown wrote: > On Thu, Sep 29, 2005 at 05:00:42PM +0200, octane indice wrote: >> Hello >> >> I have some problems using the built-in DHCP server in qemu. >> >> 1. Is it possible to have guets connected? >> If I launch 3 qemu, that I can do: >> ping 10.2.0.15 >> ping 10.2.0.14 >> and so on. >> In order to simulate a network? >> > > No. In fact, the server is set up to always return the same IP in response to > a request. Even if it worked like a full fledged DHCP server, there's no way to > connect multiple guests together. The best you can do is slirpvde. > err.. it works for me... This gives me 9 qemu sessions that all get different 10.x.x.x ip addresses via dhcp #!/bin/sh rm /tmp/qemu-irc-* for i in 1 2 3 4 5 6 7 8 9 ; do qemu-img create -b /tracks/lin.img -f qcow /tmp/qemu-irc-$i qemu -fda /tracks/floppy.img -hda /tmp/qemu-irc-$i -boot a -user-net -macaddr C0:0F:FE:01:01:9$i -m32 & done Regards, Brad -- "Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams