*BSD News Article 53246


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!cuhknntp!hpg30a.csc.cuhk.hk!news.hk.net!howland.reston.ans.net!swrinde!sdd.hp.com!news1.best.com!shellx.best.com!shellx.best.com!not-for-mail
From: wilson@shellx.best.com (Wilson Roberto Afonso)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Weird ifconfig problem
Date: 24 Oct 1995 23:34:05 -0700
Organization: Best Internet Communications
Lines: 26
Message-ID: <46klot$edu@shellx.best.com>
References: <davidp-2410951156090001@michaelangelo.leonardo.net>
NNTP-Posting-Host: shellx.best.com
X-Newsreader: NN version 6.5.0 #6 (NOV)

davidp@leonardo.net (David Pisoni) writes:
>I have had an unusual problem when setting up 'virutal hosts' as they are
>called.  The problem occurs when I try to issue the ifconfig...alias
>statement.  It doesn't always work the first time.  But if it doesn't work
>the first time, it will always work the second time.  To combat this
>problem, I have placed the ifconfig entries in both '/etc/netstart' and
>'/etc/rc.local' to ensure they are entered in a boot-time.
>Here is what happens:
>cellini# ifconfig we0 inet 204.140.224.11 alias
>ifconfig: ioctl (SIOCAIFADDR): File exists
>cellini# ifconfig we0 inet 204.140.224.11 alias
>Now it will work.

Well, I get the error message at the first (and only) time I
run "ifconfig xxx alias ...", *but* it sort of works.  I mean,
other hosts can contact the virtual host, but the host that the
command was ran on cannot (no answer to ping).

This is a BSD/OS 2.0.1, all patches applied.

>Any ideas?

Ditto.  Any ideas ?

-Wilson