*BSD News Article 99588


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!hunter.premier.net!europa.clark.net!infeed1.internetmci.com!newsfeed.internetmci.com!usenet.logical.net!news.dal.ca!newsflash.concordia.ca!sunqbc.risq.qc.ca!cumin.telecom.uqam.ca!admin_news@uqam.ca
From: Stephane Russell <russell.stephane@usa.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ifconfig alias problem
Date: Mon, 14 Jul 1997 01:09:05 -0400
Organization: Universite du Quebec a Montreal
Lines: 31
Message-ID: <33C9B471.1738ADD0@usa.net>
References: <5pi65v$3h6@news.interlog.com>
NNTP-Posting-Host: merlin.si.uqam.ca
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-Mailer: Mozilla 4.0b5C (X11; I; FreeBSD 2.2-970618-RELEN0 i386)
X-Priority: 3 (Normal)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44380


Patrick McConnell wrote:

> Hi,
>
> I'm trying to set up an IP address alias on my network card (ed0 - the
>
> only one in the machine) for use with an Apache virtual server. I'm
> sure
> I've just missed something obvious, but I have checked man pages,
> docs,
> etc.
>
> When I add 'alias 192.168.1.10' to the ifconfig_ed0 line in rc.conf,
> ifconfig shows that 192.168.1.10 is the broadcast for the card's real
> address.
>
I think that 'alias' is a keyword with no argument following. You can't
configure your card's aliases with one single ifconfig call. The rc.conf
file allows you to add aliases that way:

ifconfig_ed0="inet CardIP ..."
ifconfig_ed0_alias0="inet CardIPAlias ..."

Those lines will be translated in theses commands in the rc.network
file:

ifconfig_ed0 inet CardIP ...
ifconfig_ed0 inet CardIPAlias ... alias

Stef