Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 1996 10:11:01 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        apatron@optel.net
Cc:        bugs@freebsd.org
Subject:   Re: conf/2208: configuring multiple IP addresses
Message-ID:  <199612140911.KAA24218@uriah.heep.sax.de>
In-Reply-To: <199612140212.SAA01276@freefall.freebsd.org> from "apatron@optel.net" at "Dec 13, 96 06:12:51 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As apatron@optel.net wrote:

> I have currently configured ep0 and lo0 with one IP, how do I add
> another IP because I want to host on the same machine multiple
> webs.??

Well, you should better have sent this to freebsd-questions@freebsd.org,
since it's neither a bug report, nor a request to change something...

It's basically documented in the man page for ifconfig(1), and it's
also in the FAQ.  But i suppose that's why this thing is named FAQ,
since the questions are frequently asked, and nobody bothers to read
the answers in advance. :-/

9.8. How can I setup Ethernet aliases?

Add ``netmask 0xffffffff'' to your ifconfig command-line like the following: 

            ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff

Depending on the version of FreeBSD you're using, there is or is no
support for automating this using /etc/sysconfig.  Newer versions
added the ability to do it there, for older versions, put it into
/etc/netstart, or /etc/rc.local manually.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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