Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMM2d-0006xG-9B for qemu-devel@nongnu.org; Tue, 05 Feb 2008 06:32:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMM2b-0006wp-MP for qemu-devel@nongnu.org; Tue, 05 Feb 2008 06:32:42 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMM2b-0006wm-JG for qemu-devel@nongnu.org; Tue, 05 Feb 2008 06:32:41 -0500 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMM2b-000343-9e for qemu-devel@nongnu.org; Tue, 05 Feb 2008 06:32:41 -0500 Received: from mariner.uk.xensource.com (mariner.uk.xensource.com [172.31.17.38]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m15BVvfw011768 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 5 Feb 2008 03:31:59 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1JMM0j-00035l-Ct for qemu-devel@nongnu.org; Tue, 05 Feb 2008 11:30:45 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18344.18661.39309.29838@mariner.uk.xensource.com> Date: Tue, 5 Feb 2008 11:30:45 +0000 Subject: Re: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x In-Reply-To: References: <20080205005142.GD4368@implementation> From: Ian Jackson 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 Andreas Schwab writes ("Re: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x"): > Samuel Thibault writes: > > Mmm, actually, shouldn't qemu use a more "private" network like a > > RFC1918 172.16.0.0/12 network? > > In which way is 172.16.0.0/12 more "private" than 10.0.0.0/8? It isn't. There is no particular reason to choose one rather than another so in that sense I disagree with Samuel. However, there are two things wrong with the current qemu arrangements. The first is that the range isn't configurable without recompiling. I agree with Johannes Schindelin that it should be. The second is that addresses chosen from RFC1918 space should be chosen randomly. Quoting the RFC: If two (or more) organizations follow the address allocation specified in this document and then later wish to establish IP connectivity with each other, then there is a risk that address uniqueness would be violated. To minimize the risk it is strongly recommended that an organization using private IP addresses choose randomly from the reserved pool of private addresses, when allocating sub-blocks for its internal allocation. I don't believe that 10.0.2.0/24 was chosen randomly :-). It would be better for qemu's default range to be a randomly chosen one. The URL Samuel quotes, www.ucam.org/cam-grin, is a personal project of mine which helps choose random addresses and which can also be used for documenting one's usage. So while this setup is being made configurable, I think it would probably be best for qemu's range to be changed to a random range. I would suggest 172.30.206.0/24 which is already used as a default for some regression testing in Xen; since Xen's and qemu's management setups are best regarded as alternatives, there is less problem with clashes. As an alternative, a new range can be chosen randomly quite easily. I think it would also be good for one of the qemu maintainers to document qemu's use in my registry. Ian.