From owner-freebsd-questions Sun May 2 21: 1:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 611F914C0C for ; Sun, 2 May 1999 21:01:09 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id AAA20254; Mon, 3 May 1999 00:01:23 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199905030401.AAA20254@cc942873-a.ewndsr1.nj.home.com> Subject: Re: variable-sized subnets in class C In-Reply-To: <199905030117.SAA16692@deal1.bogs.org> from Greg Shenaut at "May 2, 99 06:17:23 pm" To: gkshenaut@ucdavis.edu Date: Mon, 3 May 1999 00:01:22 -0400 (EDT) Cc: questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Shenaut wrote, > I am trying to divide up my class C network into variably sized > subnets. I think I understand how to do this, but I thought I'd > write up what I think to be the constraints, and see if anyone > more knowledgeable than I could keep me from making a mistake. [snip long explination] I think you have made this a lot more complicated than it really is. First, there is no real reason to limit the discussion of this to class C subnets. We could equally well talk about 20-bit nets or any mask with less than three bytes. Second, you do have one thing wrong. > The rules are: the highest and lowest address in each network cannot > appear in a subnet. It is a misconception that the lowest subnet and highest subnet are unuasable. According to RFC 1812 subnets of all zeros or all ones are legal and should be supported by all routers (only the _very_ oldest of routers may not comply). With this in mind, you can cut up a C class pretty much any way you want. Think of it this way, you can take it and cut it in two for two 128 member (126 usable of course) nets. Each if those can (but do not need to be) cut in two again, and any results from that can be cut down again, etc. etc. until as you pointed out, you reach a 4 member net, the smallest that can have "real" hosts. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message