*BSD News Article 55056


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!tank.news.pipex.net!pipex!demon!sunsite.doc.ic.ac.uk!uknet!SoNet!news
From: chris@aladdin.net (Chris Cain)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: ifconfig alias command???
Date: Thu, 16 Nov 1995 22:31:31 GMT
Organization: Aladdin Internet
Lines: 24
Message-ID: <48j2jq$bi3@alpha.aladdin.co.uk>
References: <Pine.OSF.3.91.951113190701.27487B-100000@hubble.sheridanc.on.ca>
Reply-To: chris@aladdin.net
NNTP-Posting-Host: me.aladdin.co.uk
X-Newsreader: Forte Agent .99b.112

On Tue, 14 Nov 1995 00:11:19 GMT, john andy bain
<bainjohn@hubble.sheridanc.on.ca> wrote:

>I am trying to run multiple www domains on the same server.
>I have downloaded apache, and I used the ifconfig command to setup an alias
>IP address for the same ethernet card.
>It seemed to work, but I cannot ping or telnet to the alias address.
>Ping and telnet works with the original address.
>
>I really need some help on this, and any help would be greatly appreciated.
>
>Andy.
>
for some reason you have to include a netmask in the alias command
or it wont work.
ie 
ifconfig we0 alias 111.222.111.2 netmask 255.255.255.255

works fine

Chris