From owner-freebsd-questions Mon Sep 9 10:53:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA07681 for questions-outgoing; Mon, 9 Sep 1996 10:53:20 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA07675 for ; Mon, 9 Sep 1996 10:53:10 -0700 (PDT) Received: (from nadav@localhost) by gatekeeper.barcode.co.il (8.6.12/8.6.12) id UAA04913; Mon, 9 Sep 1996 20:47:56 +0200 Date: Mon, 9 Sep 1996 20:47:56 +0200 (IST) From: Nadav Eiron To: Ben Black cc: Rob Buchanan , questions@freebsd.org Subject: Re: Multi host web server on FreeBSD In-Reply-To: <9609091520.AA12370@squid.gage.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 9 Sep 1996, Ben Black wrote: > > Use IP aliases, like so: > > ifconfig de0 inet netmask 255.255.255.255 alias > > > > This will add an alias address to an existing interface (de0 in this > > example). Note that the mask should be all 1-s. > > why? i keep seeing people do this and it just makes no sense to me. Well, the reason is that the rule to go by is that if a machine has more than one IP address those should be on different networks. Since when configuring virtual hosts you normally won't assign addresses from different nets or subnets, using a mask of all 1-s will let you use addresses from the same net. I also think that with 2.1.0 the "do ifconfig twice" bug does not manifest itself when such a mask is given (at least for me it doesn't). Bottom line, that's what I use, it works for me, and for several other people who has problems with aliases, asked a question about it on this list, and got that same answer. > > > b3n > Nadav