From owner-freebsd-questions@FreeBSD.ORG Fri Nov 5 10:41:21 2004 Return-Path: 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 2E92316A4CE for ; Fri, 5 Nov 2004 10:41:21 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5CD943D41 for ; Fri, 5 Nov 2004 10:41:19 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) iA5AfAKX038277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Nov 2004 10:41:10 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)iA5Af83D038276; Fri, 5 Nov 2004 10:41:08 GMT (envelope-from matthew) Date: Fri, 5 Nov 2004 10:41:08 +0000 From: Matthew Seaman To: "GRF ." Message-ID: <20041105104107.GA37874@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "GRF ." , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 05 Nov 2004 10:41:10 +0000 (GMT) X-Virus-Scanned: ClamAV 0.80/574/Fri Nov 5 00:12:58 2004 clamav-milter version 0.80j on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Adding IP's ifconfig problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 10:41:21 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 05, 2004 at 03:11:57AM -0500, GRF . wrote: > I have a 5.2.1 server which I need to add IP's to. When the provider=20 > assigned me the IP's they also said use the netmask 255.255.255.240. I= =20 > added the IP's to my rc.conf as you can see below but they do not show up= =20 > in my ifconfig. >=20 > MY rc.conf: >=20 > # -- sysinstall generated deltas -- # Wed Nov 3 09:22:52 2004 > # Created: Wed Nov 3 09:22:52 2004 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > defaultrouter=3D"208.53.17X.1" > hostname=3D"warped.xconch.net" > ifconfig_fxp0=3D"inet 208.53.17X.8 netmask 255.255.255.0" > linux_enable=3D"YES" > sshd_enable=3D"YES" > usbd_enable=3D"YES" > inetd_enable=3D"YES" > pureftpd_enable=3D"YES" > ifconfig_fxp0_alias0=3D"inet 208.53.17X.2 netmask 255.255.255.240" > ifconfig_fxp0_alias1=3D"inet 208.53.17X.3 netmask 255.255.255.240" > ifconfig_fxp0_alias2=3D"inet 208.53.17X.4 netmask 255.255.255.240" > ifconfig_fxp0_alias3=3D"inet 208.53.17X.5 netmask 255.255.255.240" > ifconfig_fxp0_alias4=3D"inet 208.53.17X.6 netmask 255.255.255.240" > ifconfig_fxp0_alias5=3D"inet 208.53.17X.7 netmask 255.255.255.240" > ifconfig_fxp0_alias6=3D"inet 208.53.17X.8 netmask 255.255.255.240" > ifconfig_fxp0_alias7=3D"inet 208.53.17X.9 netmask 255.255.255.240" > ifconfig_fxp0_alias8=3D"inet 208.53.17X.10 netmask 255.255.255.240" > ifconfig_fxp0_alias9=3D"inet 208.53.17X.11 netmask 255.255.255.240" > ifconfig_fxp0_alias10=3D"inet 208.53.17X.12 netmask 255.255.255.240" > ifconfig_fxp0_alias11=3D"inet 208.53.17X.13 netmask 255.255.255.240" > ifconfig_fxp0_alias12=3D"inet 208.53.17X.14 netmask 255.255.255.240" Classic error. You need to read this part of the ifconfig(8) man page more carefully: 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. ie. only one address (per network) on the interface can have the 'real' netmask. The others (ie all of your aliases) should use 0xffffffff or 255.255.255.255. Or to put it another way, the bitwise 'and' of the IP number and the netmask must be different for every address configured on the interface. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBi1jDiD657aJF7eIRAgSgAKCkczf92ITnHcDXEG/HkkDqtefjVQCfc9RQ JCRhLRyf819qqJ+ZZqFk9Kg= =cWIR -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--