*BSD News Article 56350


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!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!btnet!demon!kiss.demon.co.uk
From: phil@zipmail.co.uk (Phil Taylor)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Virtual hosting (probably a FAQ)
Date: Fri, 08 Dec 1995 18:41:09 GMT
Organization: Lan Systems
Lines: 31
Message-ID: <818451011.18285@kiss.demon.co.uk>
References: <DJ2HsD.DFw@ritz.mordor.com> <4a4okl$f1@buffnet2.buffnet.net>
Reply-To: phil@zipmail.co.uk
NNTP-Posting-Host: kiss.demon.co.uk
X-NNTP-Posting-Host: kiss.demon.co.uk
X-Newsreader: Forte Free Agent 1.0.82

shovey@buffnet.net (steve hovey) wrote:

>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


>I put it in a batch file called by rc.local - if is:

>ifconfig ed1 999.999.999.999 netmask 255.255.255.255 alias

in /etc/netstart there is a mechanism which allows this and is a bit
cleaner than rc.local, simply create a shell file called
/etc/start_if.{interface name} and it will be called at boot up !

>You cannot ping any of the aliased ips from the machine it is aliased on 
>- but should be able to from any other machine.

I have about 10 aliases IP's on my FBSD box and CAN ping all of them
from that box !!!!