Victor Duchovni:
> On Mon, Sep 29, 2008 at 11:53:07AM -0400, Adam Mason wrote:
>
> > ifconfig lo0 1.2.3.4 netmask 255.255.0.0 -arp up
>
> Leave the *primary* IP address of lo0 as 127.0.0.1, add "1.2.3.4"
> (examples really should use 192.0.2.0/24 addresses) as a secondary
> IP address for lo0. Commands for adding secondary IPs are O/S
> specific, consult your docs.
In FreeBSD, this would be:
# ifconfig fxp0 inet 1.2.3.4 netmask 255.255.255.255 alias
Yes, that is a mask of 255.255.255.255. This example assumes that
the "main" IP address is in the same subnet as the alias one.
Wietse