From owner-freebsd-stable Thu Jan 27 4:11:29 2000 Delivered-To: freebsd-stable@freebsd.org Received: from lindt.urgle.com (lindt.urgle.com [195.173.172.169]) by hub.freebsd.org (Postfix) with ESMTP id 8FB1614FD2 for ; Thu, 27 Jan 2000 04:11:23 -0800 (PST) (envelope-from mike@urgle.com) Received: from mike by lindt.urgle.com with local (Exim 3.03 #1) id 12Dnlg-0009O1-00; Thu, 27 Jan 2000 12:11:20 +0000 Date: Thu, 27 Jan 2000 12:11:20 +0000 From: Mike Bristow To: "N.B. DelMore" Cc: freebsd-stable@freebsd.org Subject: Re: Multiple IP addresses Message-ID: <20000127121120.A36056@lindt.urgle.com> References: <3.0.6.32.20000124043423.009ac550@mail.inr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3.0.6.32.20000124043423.009ac550@mail.inr.net>; from mylists@inr.net on Mon, Jan 24, 2000 at 04:34:23AM -0500 X-Rated: Need To Know, Waco, Texas, Cocaine Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 24, 2000 at 04:34:23AM -0500, N.B. DelMore wrote: > I then added an entry in /etc/rc.local to run the following shell script: > > #!/bin/sh > > /sbin/ifconfig lo0 xxx.xxx.xxx.0 netmask 0xffffff00 alias > /sbin/ifconfig lo0 xxx.xxx.xxx.1 netmask 0xffffffff alias > /sbin/ifconfig lo0 xxx.xxx>xxx.2 netmask 0xffffffff alias > > through > > /sbin/ifconfig lo0 198.77.215.255 netmask 0xffffffff alias Looks like a job for netalias: see http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12071 apply, rebuild, and then you just need: ifconfig lo0 xxx.xxx.xxx.0 netmask 0xffffff00 alias which will configure the whole network up. It would be nice if this was in the canonical source; large web farms (using HTTP/1.0 or SSL) would find this kind of ability very useful - it's much faster than doing things with ipfilter and suchlike. It's been in use at Demon Internet for years. -- Mike Bristow, Geek At Large ``Beware of Invisible Cows'' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message