*BSD News Article 67704


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!in2.uu.net!newsie.dmc.com!venus.os.com!jupiter
From: craigs@os.com (Craig Shrimpton)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can't traceroute to virtual hosts
Date: Sun, 05 May 96 13:37:25 GMT
Organization: Orbit Systems
Lines: 37
Message-ID: <4mibag$12u@venus.os.com>
References: <4mhaeg$f8@venus.os.com> <4mhsqd$dv6@itchy.serv.net>
NNTP-Posting-Host: jupiter.os.com
X-Newsreader: News Xpress 2.0 Beta #0

In article <4mhsqd$dv6@itchy.serv.net>, zeno@serv.net (Sean T. Lamont) wrote:

>You should probably be putting them on the class C. If you want to reach it 
>from the local host its alias on, you can add a static route to it ; this 
>is what we do.
>
>IE:
>
>ifconfig ed0 inet a.b.c.d alias
>route add a.b.c.d 127.0.0.1
>
This seems to work for me but I have to ifconfig each virtual domain twice to 
get it to work.  The first domain I add works fine, the second gives me an 
ifconfig: ioctl (SIOCAIFADDR): File exists.

Here is the exact output:

ifconfig de0 inet 199.xxx.xxx.73 alias
route add -host 199.xxx.xxx..73 127.0.0.1
ifconfig de0 inet 199.xxx.xxx.74 alias
ifconfig: ioctl (SIOCAIFADDR): File exists
ifconfig de0 inet 199.xxx.xxx.74 alias
route add -host 199.xxx.xxx.74 127.0.0.1

Each interface after the second must be ifconfiged twice to get it to work.

Any ideas?

Thanks,

Craig


===================================================================
Orbit Systems					Phone: 508-753-8776
400 Grove St.					Email: craigs@os.com
Worcester, MA 01605				http://www.os.com/