Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 1997 17:52:06 +1000
From:      David Nugent <davidn@labs.usn.blaze.net.au>
To:        "Daniel O'Callaghan" <danny@panda.hilink.com.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:  <199704290752.RAA29666@labs.usn.blaze.net.au>
In-Reply-To: Your message of "Tue, 29 Apr 1997 13:44:34 %2B1000." <Pine.BSF.3.91.970429134130.237A-100000@panda.hilink.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704290752.RAA29666>