Date: Tue, 29 Apr 1997 18:04:53 +1000 (EST) From: "Daniel O'Callaghan" <danny@panda.hilink.com.au> To: David Nugent <davidn@labs.usn.blaze.net.au> Cc: John Gunkel <jgunkel@tbf.net>, "'freebsd-isp@freebsd.org'" <freebsd-isp@FreeBSD.ORG> Subject: Re: virtual hosts through gateway to dummy net device Message-ID: <Pine.BSF.3.91.970429180346.237D-100000@panda.hilink.com.au> In-Reply-To: <199704290752.RAA29666@labs.usn.blaze.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970429180346.237D-100000>