*BSD News Article 67792


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!ames!enews.sgi.com!decwrl!elroy.jpl.nasa.gov!swrinde!newsfeed.internetmci.com!News.LiveNet.Net!beast
From: jsloan@LiveNet.Net (Jim Sloan)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can't traceroute to virtual hosts
Date: Mon, 06 May 96 02:21:08 GMT
Organization: LiveNet, Inc.
Lines: 45
Message-ID: <4mjnl4$hgn@PaperBoy.LiveNet.Net>
References: <4mhaeg$f8@venus.os.com>
NNTP-Posting-Host: blue.livenet.net
X-Newsreader: News Xpress 2.0 Beta #0

In article <4mhaeg$f8@venus.os.com>, craigs@os.com (Craig Shrimpton) wrote:
>Folks,
>
>I have configured virtual hosts like so:
>
>ifconfig de0 inet alias x.x.x.x netmask 0xffffffff
>

Try this instead

ifconfig de0 inet alias x.x.x.x 127.0.0.1 netmask 0xffffff00

>The virtual domains work fine except that I can't traceroute to them.  The 
>traceroute basically times out trying to reach the last hop.  My guess is that 
>it is due to the fact that the virtual host machine is on subnet 0xfffffff0.
>
>Ifconfig doesn't like it when I try to configure the netmask with the 
>0xfffffff0 mask so I'm assuming you have to use 0xffffffff.  Is the inability 
>to finish a traceroute normal behaviour for FreeBSD virtual hosts?
>
>Thanks,
>
>Craig
>
>
>===================================================================
>Orbit Systems                                   Phone: 508-753-8776
>400 Grove St.                                   Email: craigs@os.com
>Worcester, MA 01605                             http://www.os.com/

Adding localhost as the gateway gives it something that it understands as 
where to respond to.  Without the gateway, the aliased ifconfig doesn't know 
how to route its packets if you are calling it from the same machine it is 
aliased on.


------------------------------------------------------------------------
 Jim Sloan                        jsloan@livenet.net
 Vice President
 LiveNet, Inc.                         
 413 Davis St. Suite 106          Full Service Internet Provider
 Virginia Beach VA 23462          Dialup and dedicated connections
 Ph: 804-499-9328                 Virtual Web, Email, and FTP hosting
 http://www.livenet.net           info@livenet.net webmaster@livenet.net
------------------------------------------------------------------------