Re: Assigning host route to loopback

John Kristoff <[email protected]> Mon, 16 Feb 2004 23:07:37 -0600
Newsgroups gmane.comp.security.sun
Message-ID <[email protected]>
FYI... I originally posted to this list by mistake, but I'll follow up
because a number of people did send private emails offering help and
suggestions (thanks).

On Tue, 17 Feb 2004 13:29:51 +1000
"Reg Quinton" <[email protected]> wrote:

> > I don't seem to be able to set the netmask for an IP to 255.255.255.255
> > in the /etc/inet/netmasks file.
> 
> Wouldn't a netmask of 255.255.255.255 mean that every single IP address in
> the world is addressable by  ARP on that interface?
> I doubt that's what you want.

I think you might be referring to a situation where host relies on
another (router or default gateway) to do proxy arp in order to reach
other hosts on other networks.  A host route, where the network mask
is 255.255.255.255 is a legitimate entry in a routing table most
typically used for a point-to-point link, loopback interface or
other directly connected host.

Literally seconds after my post hit the list, Casper Dik (of course :-)
sent me the info I needed.  I needed to enter the IP address in CIDR
notiation (e.g. 192.0.2.254/32) in the /etc/hostname.lo0:1 file.  I
also did the same for the dmfe0 interface, plus removed network and
associate network mask info from the /etc/inet/netmasks file.  All
good now.

John