From owner-freebsd-doc@FreeBSD.ORG Wed Sep 17 13:37:40 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA7DB16A4B3 for ; Wed, 17 Sep 2003 13:37:40 -0700 (PDT) Received: from mta3.adelphia.net (mta3.adelphia.net [68.168.78.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id C614243FE1 for ; Wed, 17 Sep 2003 13:37:37 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.179.151]) by mta3.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030917203739.QVXM13937.mta3.adelphia.net@potentialtech.com>; Wed, 17 Sep 2003 16:37:39 -0400 Message-ID: <3F68C610.8080207@potentialtech.com> Date: Wed, 17 Sep 2003 16:37:36 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Newhard References: <01c401c37d57$f4e5e640$09a7a8c0@Anewhard> In-Reply-To: <01c401c37d57$f4e5e640$09a7a8c0@Anewhard> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: doc@FreeBSD.org Subject: Re: freebsd documentation X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2003 20:37:40 -0000 Adam Newhard wrote: > the document page listed at > http://www4.us.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-virtual-hosts.html > > at the bottom, i'm pretty sure you guys have an error in your page (it's > something anyone who doesn't have a clue would pick out though, so it's not > a big deal). From the page: > ******************************* > > For example, consider the case where the fxp0 interface is connected to two > networks, the 10.1.1.0 network with a netmask of 255.255.255.0 and the > 202.0.75.16 network with a netmask of 255.255.255.240. We want the system to > appear at 10.1.1.1 through 10.1.1.5 and at 202.0.75.17 through 202.0.75.20. > > The following entries configure the adapter correctly for this arrangement: > > ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255" > ifconfig_fxp0_alias1="inet 10.1.1.3 netmask 255.255.255.255" > ifconfig_fxp0_alias2="inet 10.1.1.4 netmask 255.255.255.255" > ifconfig_fxp0_alias3="inet 10.1.1.5 netmask 255.255.255.255" > ifconfig_fxp0_alias4="inet 202.0.75.17 netmask 255.255.255.240" > ifconfig_fxp0_alias5="inet 202.0.75.18 netmask 255.255.255.255" > ifconfig_fxp0_alias6="inet 202.0.75.19 netmask 255.255.255.255" > ifconfig_fxp0_alias7="inet 202.0.75.20 netmask 255.255.255.255" > If you're configuring your system how you said above, those last 3 lines > needs a netmask of 255.255.255.240, not .255 No. Read this paragraph from that page: "The calculation of alias netmasks is important, but fortunately quite simple. For a given interface, there must be one address which correctly represents the network's netmask. Any other addresses which fall within this network must have a netmask of all 1s." The example is correct, and the page _does_ explain why. -- Bill Moran Potential Technologies http://www.potentialtech.com