*BSD News Article 98970


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!howland.erols.net!news.maxwell.syr.edu!News1.Ottawa.iSTAR.net!News1.Toronto.iSTAR.net!news.istar.net!news2.interlog.com!news.interlog.com!patrick.interlog.com!patrick
From: Patrick McConnell <patrick@patrick.interlog.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: ifconfig alias problem
Date: 4 Jul 1997 06:45:18 GMT
Organization: InterLog Internet Services
Lines: 30
Message-ID: <5pi65v$3h6@news.interlog.com>
NNTP-Posting-Host: patrick.interlog.com
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970516; i386 FreeBSD 2.2.2-RELEASE]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43921

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.

Then I tried to configure ed0 without the alias and try to add it after
with 'ifconfig ed0 alias 192.168.1.10'. It gave me the error 'ifconfig:
ioctl (SIOCAIFADDR): File exists'. Then the output of 'ifconfig ed0'
looked the way I thought it should - one line for each address - but I
couldn't ping 192.168.1.10.

Ideas? Any help is greatly appreciated!

Thanks,

Patrick


-- 
Patrick McConnell (patrick@interlog.com)
Finger info: http://www.interlog.com/~patrick/finger

"640k ought to be enough for anybody."
			       -Bill Gates, 1981