From owner-freebsd-isp@FreeBSD.ORG Wed Jul 30 08:47:19 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D4937B401; Wed, 30 Jul 2003 08:47:19 -0700 (PDT) Received: from energistic.com (bdsl.66.12.217.106.gte.net [66.12.217.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id C30EC43F3F; Wed, 30 Jul 2003 08:47:14 -0700 (PDT) (envelope-from steve@energistic.com) Received: from energistic.com (steve@localhost [127.0.0.1]) by energistic.com (8.12.9/8.12.9) with ESMTP id h6UFlCXp029050; Wed, 30 Jul 2003 10:47:13 -0500 (EST) (envelope-from steve@energistic.com) Received: (from steve@localhost) by energistic.com (8.12.9/8.12.9/Submit) id h6UFlCPa027436; Wed, 30 Jul 2003 10:47:12 -0500 (EST) (envelope-from steve) Date: Wed, 30 Jul 2003 10:47:12 -0500 From: Steve Ames To: Supote Leelasupphakorn Message-ID: <20030730154712.GA24659@energistic.com> References: <20030730124609.40316.qmail@web40614.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030730124609.40316.qmail@web40614.mail.yahoo.com> User-Agent: Mutt/1.5.4i cc: freebsd-isp@freebsd.org cc: freebsd-net@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: Can I subnet my network like this ? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2003 15:47:20 -0000 On Wed, Jul 30, 2003 at 01:46:09PM +0100, Supote Leelasupphakorn wrote: > I heard that it isn't recommend or > impossible (not sure again) to use FIRST or > LAST subnet in the allocated IP address pool, > is it? That was true at one time. These days it is acceptable to use all definable subnets (including first and last). If you have some really old (pre 1995) equipment or software it may be a bit iffy. See RFC1878: ftp://ftp.rfc-editor.org/in-notes/rfc1878.txt > Section no.1 is existed and I own the Gateway no.2. > My plan is enable NAT on it by following the > instruction in FreeBSD handbook. Any comments are > welcome. If your NATting on gateway#2 I don't think the info about gateway #1 is really relevent... > | | > | if_1 = 10.0.0.254 | > |---------------| if_2 = 172.16.0.1/16 | section 2 > | Gateway no.2 |---------------- | > |---------------| | > | if_3 = 172.17.0.1/16 | > | | Lets go on the assumption that if_1 is your external interface and the one you'll be running natd on? I'm afraid I don't understand your question then. The subnetting is fine. You have a full /16 on interface 2 and 3 (way overkill for most applications but hey :). All of your interfaces are utilizing valid RFC1918 private IP space. It should all just work. *shrug* -Steve