From owner-freebsd-net@FreeBSD.ORG Tue Aug 6 08:59:24 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 07906183 for ; Tue, 6 Aug 2013 08:59:24 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-oa0-x231.google.com (mail-oa0-x231.google.com [IPv6:2607:f8b0:4003:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C475F20FF for ; Tue, 6 Aug 2013 08:59:23 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id n10so235932oag.22 for ; Tue, 06 Aug 2013 01:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=evpDuc/fOexJkhDjzwatf6Q3F78UfsO7fhSuLhvq4ug=; b=vJVEd9YD4QTVH3BEJL6y8Bt1SMP5DmT5DKm+s/TvO4cKnv8swohqCp8XfKLn9eIiL5 xeY4K4HjHCkwckcvjE8sC6UOOgrhBdFvq1fgZFDxi88/n6eg8/HOFvZt4OyE8+t1VOht pucQkj9/XIjADi6CBHMFv82tIFP0BGcBMzNzmkXGKN8U5BjFOBdZ1QP2xpqbHNbpO23s x6QaHFxFL5Sz1SnXzSybnbldGdAfXIwANdMZtn3Mjq+WmiqvIouzYYZMQ3hkltO4QePh 06/BrEV8vAOixeMuRpI33LfERTSMNGPVGVWna4+wIX3E/nPzGh5hAU1veYX1B+E9aHVz 4Lkg== MIME-Version: 1.0 X-Received: by 10.60.144.230 with SMTP id sp6mr132494oeb.102.1375779562183; Tue, 06 Aug 2013 01:59:22 -0700 (PDT) Received: by 10.76.108.143 with HTTP; Tue, 6 Aug 2013 01:59:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Aug 2013 10:59:22 +0200 Message-ID: Subject: Re: how define network with mask 8 for dhcp server? From: Andreas Nilsson To: Olivier Nicole Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Olivier Nicole , FreeBSD Net , s m X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Aug 2013 08:59:24 -0000 On Tue, Aug 6, 2013 at 10:40 AM, Olivier Nicole wrote: > Sam, > > > my problem is to know how define a network with mask 8 and dhcp server > > works correctly with it! you know if i config my dhcpd.conf like below, i > > have core dump either: > > subnet 10.0.0.0 netmask 255.0.0.0 > > { > > range 10.0.0.1 10.255.255.254; > > } > > > > do you know how should i define my range ?? > > The reason may be that 2^24 machines in a subnet is such a non-sense > that dhcp simply cannot manage it. > > Best regards, > > Olivier > > > > > On Tue, Aug 6, 2013 at 12:23 PM, Olivier Nicole < > Olivier.Nicole@cs.ait.ac.th > >> wrote: > > > >> Sam, > >> > >> > subnet 192.0.0.0 netmask 255.0.0.0 > >> > >> I know it is not the answer to your question, but you are wrong in your > >> guess that 192.0.0.0/8 is all private IPs. Only 192.168.0.0/16 is. > >> > >> I know that for certain because my own IP starts with 192. > >> > >> If you want a full /8 private, you can only use 10.0.0.0/8 > >> > >> Bets regards, > >> > >> Olivier > >> > >> -- > >> > > Well, I would guess it may run out of memory... I did a few tests: 192.0.0.0 - 192.128.255.255 does work ( using ~2.5Gb RAM ). 192.0.0.0 - 192.192.255.255 does work ( using ~4Gb RAM ). 192.0.0.0 - 192.200.255.255 does work ( using ~4.2Gb RAM ). 192.0.0.0 - 192.224.255.255 dumps core Why would you want to have such a huge range? Best regards Andreas