Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMSpU-000682-TZ for qemu-devel@nongnu.org; Mon, 03 Oct 2005 12:06:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMSnp-0005SC-V4 for qemu-devel@nongnu.org; Mon, 03 Oct 2005 12:04:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMSnn-0005G1-Th for qemu-devel@nongnu.org; Mon, 03 Oct 2005 12:04:32 -0400 Received: from [195.167.226.133] (helo=alinto.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EMSfY-0004vR-1O for qemu-devel@nongnu.org; Mon, 03 Oct 2005 11:56:00 -0400 Message-ID: <1128354958.4341548e81311@webmail.alinto.com> Date: Mon, 03 Oct 2005 17:55:58 +0200 From: octane indice Subject: Re: [Qemu-devel] about DHCP server in qemu References: <1128006042.433c019a295a8@webmail.alinto.com> <20050929203431.GA4684@jbrown.mylinuxbox.org> <433C61B7.6070804@wasp.net.au> <20050929221406.GA6019@jbrown.mylinuxbox.org> <1128068224.433cf48005ab5@webmail.alinto.com> <20050930131014.GA14173@jbrown.mylinuxbox.org> <1128104933.2390.42.camel@aragorn> <20050930215938.GA20094@jbrown.mylinuxbox.org> In-Reply-To: <20050930215938.GA20094@jbrown.mylinuxbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 En réponse à "Jim C. Brown" : > > Nearly? Oh come on... you know it ain't possible, period. > > What are you refering to? The ability of a single qemu to ping > thru slirp, > or the ability of multiple qemus to ping each other using > their guest ips? > > The former can be done, as explained below, but it is probably > more trouble > than its worth. The latter can not be done at all *IF* the > guests have to > communicate thru the slirp layer. However, if the slirp layer > is just used to > talk to the host and the LAN/internet and you have something > else that deals > with guest-to-guest, then this can be done. slirpvde comes to > mind here. > > > Ping (ICMP) operates at the IP level. An unprivileged > > socket, which is > > what user-net (slirp) uses can only send/receive packets at > > the ported > > protocols level, which means UDP or TCP. > > Actually, it is really easy to add ping support to qemu using > sockets. The only > issue here is privilege. (You need to be root in order to be > able to use an > ICMP socket.) > > An alternative would be to use "/sbin/ping -c 1" and parse its > output in order > to simulate an actual ICMP connection. This is considerably > harder, but definitely possible. > And what about a full IP connection beetween hosts? In order to simulate a real network to do nfs/smtp/http/smb and so on? I was thinking of a sort of a net-server which handles the DHCP process, the connection for going outside (masquerade+DNS+SMB) and the connection beetween hosts. -- --------------------------------------------- Etes vous un consom'Acteur ? Toutes les saveurs équitables sont sur http://www.epicerie-equitable.com