From owner-freebsd-questions@FreeBSD.ORG Tue Jul 23 08:45:33 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EAE97DDD for ; Tue, 23 Jul 2013 08:45:33 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 580D52107 for ; Tue, 23 Jul 2013 08:45:33 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id u10so4591396lbi.1 for ; Tue, 23 Jul 2013 01:45:31 -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=w380pYFIiVNF1iUYskelEcOctYfqjnc4vh4YEDAh2w0=; b=074pA06C8mUAEtvEpLSOiVInzF6YFkQTZOEIaj80riUdGzVq6rZhc9fX86xRznj8i8 5+9wRBIjMr6yVi4U6CpI93g3N8t/y6GokUlJQ3IbuuHjAsGECKXW5/xMrNMwRkq7dkiM MEMdFwUI1nbvT1C22ysAwwA/B9B2nq4PvxutBOnXh6cM2CJ8SStS34jIcQ8X6aF0fMHB VpQlqSqqyGwOPMLPHypfBQlVZzJqpX2Pi6BgAZ0yK9W9AXZxxnjrWGnUvR+OPGufgEdP qum0Yv+RwWrlODLTJhGaObWEV0rcXnc5DsvhfGphWtnLW7kXedoe4+r27HoOERvinMgF vhOw== MIME-Version: 1.0 X-Received: by 10.152.28.66 with SMTP id z2mr14192040lag.5.1374569131175; Tue, 23 Jul 2013 01:45:31 -0700 (PDT) Received: by 10.112.67.135 with HTTP; Tue, 23 Jul 2013 01:45:31 -0700 (PDT) In-Reply-To: <51EE3E2C.2090203@fjl.co.uk> References: <51EE3E2C.2090203@fjl.co.uk> Date: Tue, 23 Jul 2013 13:15:31 +0430 Message-ID: Subject: Re: dhcp server returns core dump when i define network with mask 8 From: s m To: Frank Leonhardt Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 08:45:34 -0000 thanks Frank, 192 is just a sample. if i want to define 125.0.0.0 netmask 255.0.0.0, dhcp server core dump either. you're right, it is better to use just some limited addresses to avoid possible troubles. but i want to run my dhcp server for all possible networks. now my question is: if i define a network with mask 8, the rang should be like: 126.0.0.0 126.254.255.255? and thank you jb but if i define my network like below, server runs correctly: log-facility local7; subnet 192.168.0.0 netmask 255.255.0.0 { range 192.168.0.1 192.168.255.255; } i think 192.168.255.55 is reserved for broadcast too. is it not true? if yes, why dhcp server works correctly? please help me to clear my mind. regards, SAM On Tue, Jul 23, 2013 at 12:56 PM, Frank Leonhardt wrote: > On 23/07/2013 09:03, jb wrote: > >> s m gmail.com> writes: >> >> ... >>> subnet 192.0.0.0 netmask 255.0.0.0 { >>> range 192.0.0.1 192.255.255.255; >>> >> The 'range' denotes IP addresses that can be allocated to clients. >> The IP 192.255.255.255 is a reserved broadcast address for the network. >> jb >> >> >> > It's definitely "bad idea" to try to use it, but it doesn't explain the > core dump. > > Also, using DHCP to dish out addresses that don't belong to you AND aren't > on a private network (as defined by IANA) will probably lead to trouble. > Valid private address ranges are: > > 10.0.0.0 - 10.255.255.255 (private class A) > 172.16.0.0 - 172.31.255.255 (private class B x 16) > 192.168.0.0 - 192.168.255.255 (private class C x 256) > > Which block you use is really a matter of taste - classes haven't been > used in routing for quite a while so you can consider them all as straight > blocks but I (for one) still treat them as classed just to help me > visualise what's what. For example, I'll use one class C per site to > prevent conflicts over VPN. > > 192.0.0.0/24 addresses are allocated to real hosts on the wider internet, > although IIRC some of the lower ones are reserved for use in documentation > (like example.com) - is that where the idea came from?!? :-) > > Regards, Frank. > > > ______________________________**_________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions > To unsubscribe, send any mail to "freebsd-questions-** > unsubscribe@freebsd.org " >