From owner-freebsd-doc@FreeBSD.ORG Wed Sep 17 13:24:54 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 B88A416A4BF for ; Wed, 17 Sep 2003 13:24:54 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80D1A43FCB for ; Wed, 17 Sep 2003 13:24:53 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 2613C10BFAA; Wed, 17 Sep 2003 22:24:52 +0200 (CEST) Date: Wed, 17 Sep 2003 22:24:52 +0200 From: "Simon L. Nielsen" To: Adam Newhard Message-ID: <20030917202450.GB394@FreeBSD.org> References: <01c401c37d57$f4e5e640$09a7a8c0@Anewhard> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oJ71EGRlYNjSvfq7" Content-Disposition: inline In-Reply-To: <01c401c37d57$f4e5e640$09a7a8c0@Anewhard> User-Agent: Mutt/1.5.4i 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:24:54 -0000 --oJ71EGRlYNjSvfq7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.09.17 16:12:01 -0400, Adam Newhard wrote: > 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. >=20 > The following entries configure the adapter correctly for this arrangemen= t: >=20 > ifconfig_fxp0=3D"inet 10.1.1.1 netmask 255.255.255.0" > ifconfig_fxp0_alias0=3D"inet 10.1.1.2 netmask 255.255.255.255" > ifconfig_fxp0_alias1=3D"inet 10.1.1.3 netmask 255.255.255.255" > ifconfig_fxp0_alias2=3D"inet 10.1.1.4 netmask 255.255.255.255" > ifconfig_fxp0_alias3=3D"inet 10.1.1.5 netmask 255.255.255.255" > ifconfig_fxp0_alias4=3D"inet 202.0.75.17 netmask 255.255.255.240" > ifconfig_fxp0_alias5=3D"inet 202.0.75.18 netmask 255.255.255.255" > ifconfig_fxp0_alias6=3D"inet 202.0.75.19 netmask 255.255.255.255" > ifconfig_fxp0_alias7=3D"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 the current content is correct. From the ifconfig(8) manual page: alias Establish an additional network address for this interface. T= his is sometimes useful when changing network numbers, and one wis= hes to accept packets addressed to the old interface. If the addr= ess is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. 0xffffffff is the same as 255.255.255.255. --=20 Simon L. Nielsen FreeBSD Documentation Team --oJ71EGRlYNjSvfq7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/aMMSh9pcDSc1mlERAjc4AJ9EqB/+/ilzau32gJ5QXT2pWcqQyQCePM9c IooAiy5OHjfpa5DHUFqN4fI= =vSO3 -----END PGP SIGNATURE----- --oJ71EGRlYNjSvfq7--