Date: Fri, 5 Nov 2004 10:41:08 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "GRF ." <nuckingfutsto@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Adding IP's ifconfig problems Message-ID: <20041105104107.GA37874@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <BAY16-F19ca0ZkfzDsk00030b81@hotmail.com> References: <BAY16-F19ca0ZkfzDsk00030b81@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041105104107.GA37874>