From owner-freebsd-isp Mon Jan 5 14:01:04 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA18505 for isp-outgoing; Mon, 5 Jan 1998 14:01:04 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from guardian.fortress.org (fortress.org [199.202.137.242]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA18498 for ; Mon, 5 Jan 1998 14:01:01 -0800 (PST) (envelope-from andrew@guardian.fortress.org) Received: from localhost (andrew@localhost) by guardian.fortress.org (8.8.7/8.8.5) with SMTP id RAA10262; Mon, 5 Jan 1998 17:00:14 -0500 (EST) Date: Mon, 5 Jan 1998 17:00:14 -0500 (EST) From: Andrew Webster Reply-To: andrew@pubnix.net To: Karl Pielorz cc: isp@freebsd.org Subject: Re: Ifconfig & 2nd IP address - weird... In-Reply-To: <34B13CDA.AF845AFD@tdx.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 5 Jan 1998, Karl Pielorz wrote: > Hi All, > > If I do the following on my BSD box (to serve as a secondary IP for a virtual > web-server):- > > ifconfig de0 192.168.100.2 alias > > "ifconfig -a" then shows:- > > de0: flags=8843 mtu 1500 > inet 192.168.100.1 netmask 0xffffffe0 broadcast 192.168.100.31 > inet 192.168.100.2 netmask 0xffffffe0 broadcast 192.168.100.31 > ether 00:00:c0:eb:a3:0b Use netmask 0xffffffff (255.255.255.255) for 2nd and additional addresses on the same interface. Regards, Andrew Webster andrew@pubnix.net Key fingerprint = CF E8 16 B8 A6 DB E3 C9 83 E7 96 24 25 58 15 6E PubNIX Montreal Connected to the world Branche au monde P.O. Box 147 Cote Saint Luc, Quebec H4V 2Y3 tel 514.990.5911 http://www.pubnix.net fax 514.990.9443