*BSD News Article 56991


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!news.wwa.com!buffnet2.buffnet.net!buffnet3!shovey
From: shovey@buffnet.net (steve hovey)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Virtual hosting (probably a FAQ)
Date: 6 Dec 1995 18:49:57 GMT
Organization: BuffNET
Lines: 27
Message-ID: <4a4okl$f1@buffnet2.buffnet.net>
References: <DJ2HsD.DFw@ritz.mordor.com>
NNTP-Posting-Host: buffnet3.buffnet.net
X-Newsreader: TIN [version 1.2 PL2]

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

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

: in rc.local will do the trick, but that seems to break the
: networking for my machine. (can't even ping itself)

You probably had it right and snagged on the self ping business.

-------------------------------------------------------------
Steve Hovey -- shovey@buffnet.net
 	       root@buffnet.net