From owner-freebsd-isp Tue Apr 29 01:04:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA03462 for isp-outgoing; Tue, 29 Apr 1997 01:04:56 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA03456 for ; Tue, 29 Apr 1997 01:04:52 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.7.3) id SAA01804; Tue, 29 Apr 1997 18:04:54 +1000 (EST) Date: Tue, 29 Apr 1997 18:04:53 +1000 (EST) From: "Daniel O'Callaghan" To: David Nugent cc: John Gunkel , "'freebsd-isp@freebsd.org'" Subject: Re: virtual hosts through gateway to dummy net device In-Reply-To: <199704290752.RAA29666@labs.usn.blaze.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 29 Apr 1997, David Nugent wrote: > > # ifconfig lo0 192.168.1.1 netmask 0xffffffff alias > > .... > > # ifconfig lo0 192.168.1.254 netmask 0xffffffff alias > > > > # route add 192.168.1.0 127.0.0.1 > > > > On other machines, add a route to 192.168.1.0/24 via your machine's > > ethernet IP address. Of course, if you are using subnets, adjust the > > netmasks accordingly. > > For subnets, you might run into a little difficulty. The 0xffffffff > mask is "magic" for ip aliases. Using a different netmask may > complicate the issue. It is probably necessary to establish permanant > arp entries for the aliases. I should have clarified. The aliases are added as *host* aliases, always with mask 0xfffffff. The subnet route through lo0, or from other machines needs the correct mask for the subnet. Danny