*BSD News Article 56104


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!arco!news.utdallas.edu!news.tamu.edu!xenon.brooks.af.mil!natinst.com!cs.utexas.edu!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!nntp-hub2.barrnet.net!pacbell.com!amdahl.com!netcomsv!uu4news.netcom.com!davsys.com!news.irbs.com!not-for-mail
From: jc@irbs.com (John Capo)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Virtual hosting (probably a FAQ)
Date: 5 Dec 1995 12:49:26 -0500
Organization: IRBS Engineering
Lines: 26
Message-ID: <4a20n6$1o5@irbs.irbs.com>
References: <DJ2HsD.DFw@ritz.mordor.com>
NNTP-Posting-Host: irbs.irbs.com

In article <DJ2HsD.DFw@ritz.mordor.com>,
Chris Mauritz <ritz@ritz.mordor.com> wrote:
>I checked www.freebsd.org and the archives of this newsgroup
>but couldn't find any definitive answer.  What exactly are
>the steps needed to allow one machine to answer to more
>than one IP address on the same interface?  I read "man ifconfig"
>but it isn't that clear.
>
>I'm assuming something like:
>
>ifconfig ep0 inet new.ip.address alias netmask 0xffffffff
>
>in rc.local will do the trick, but that seems to break the
>networking for my machine. (can't even ping itself)
>

Use

ifconfig ep0 alias new.ip.address netmask 0xffffffff

after you have configured the primary address for the interface.


John Capo                                                   jc@irbs.com
IRBS Engineering                       High performance FreeBSD systems
(305) 792-9551                 Unix/Internet Consulting - ISP Solutions