From owner-freebsd-questions Wed Aug 21 21:24:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4C8637B400 for ; Wed, 21 Aug 2002 21:24:23 -0700 (PDT) Received: from services.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A1643E72 for ; Wed, 21 Aug 2002 21:24:23 -0700 (PDT) (envelope-from friar_josh@webwarrior.net) Received: from markx.vladsempire.net (12-218-27-215.client.mchsi.com [12.218.27.215]) by services.webwarrior.net (Postfix) with ESMTP id D8E2D2521D; Wed, 21 Aug 2002 23:24:35 +0000 (GMT) Subject: Re: confusion about netmask From: Josh Paetzel Reply-To: friar_josh@webwarrior.net To: adrian kok Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20020822040145.62091.qmail@web21209.mail.yahoo.com> References: <20020822040145.62091.qmail@web21209.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 21 Aug 2002 23:22:55 +0000 Message-Id: <1029972179.226.8.camel@markx.vladsempire.net> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 2002-08-22 at 04:01, adrian kok wrote: > Hi all > > I read the handbook about netmask for virtual host > It shows as follows > Except the first one using 255.255.255.0 > the rest is using 255.255.255.255 > > Why? and If I use all as 255.255.255.0 > what is the problem? > > On the other hands, I use it (all 255.255.255.0) in > the virtual hosts in > eth0.0 eth0.1 in linux > > Is it different from freebsd fxp0? > > Thank you for your help > > > 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 > What you give here is exactly what you need. I don't know if it's different from linux or not, but it is correct. The alias IPs need to have the netmask 255.255.255.255 Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message