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!news-peer.sprintlink.net!news-sea-19.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!207.67.253.7!atmnet.net!news.lightside.com!dcs60.dcsi.net!user From: fred@lightside.net (Fred Condo) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: ifconfig alias problem Date: Mon, 07 Jul 1997 08:57:25 -0700 Organization: Lightside, Inc. Lines: 32 Message-ID: <fred-0707970857270001@dcs60.dcsi.net> References: <5pi65v$3h6@news.interlog.com> NNTP-Posting-Host: dcs60.dcsi.net Mime-Version: 1.0 Content-Type: text/plain;charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: MT-NewsWatcher 2.3.1 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44057 In article <5pi65v$3h6@news.interlog.com>, Patrick McConnell <patrick@patrick.interlog.com> 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. > >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! According to the cookbook example that I saw somewhere on the FreeBSD site, you should use this recipe: /sbin/ifconfig ed1 inet 207.67.176.205 netmask 255.255.255.255 -- http://www.lightside.net/~fred/ + net access + http://www.lightside.net/ "Attempts to control the use of encryption technology are wrong in principle, unworkable in practice, and damaging to the long term economic value of the information networks." - UK Labour Party