From owner-freebsd-isp Tue Apr 29 00:52:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA03025 for isp-outgoing; Tue, 29 Apr 1997 00:52:30 -0700 (PDT) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA03020 for ; Tue, 29 Apr 1997 00:52:25 -0700 (PDT) Received: from labs.usn.blaze.net.au (local [127.0.0.1]) by labs.usn.blaze.net.au (8.8.5/8.8.5) with ESMTP id RAA29666; Tue, 29 Apr 1997 17:52:08 +1000 (EST) Message-Id: <199704290752.RAA29666@labs.usn.blaze.net.au> X-Mailer: exmh version 2.0gamma 1/27/96 To: "Daniel O'Callaghan" cc: John Gunkel , "'freebsd-isp@freebsd.org'" Subject: Re: virtual hosts through gateway to dummy net device In-reply-to: Your message of "Tue, 29 Apr 1997 13:44:34 +1000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 29 Apr 1997 17:52:06 +1000 From: David Nugent Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > the device name is lo1, (the second loopback device: NOT 127.0.0.1) > > is configured in a similar way to lo0 except that it has the address > > 192.168.2.1 whereas ed0 has the address 192.168.1.1 and works > > beautifully. > > Why use lo1? I use lo0 quite happily. Yep, me too. > # ifconfig lo0 127.0.0.1 > > # 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. David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/