Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 1997 22:10:39 -0700
From:      John-Mark Gurney <jmg@hydrogen.nike.efn.org>
To:        John Gunkel <jgunkel@tbf.net>
Cc:        "'freebsd-isp@freebsd.org'" <freebsd-isp@FreeBSD.org>
Subject:   Re: virtual hosts through gateway to dummy net device
Message-ID:  <19970428221039.48998@hydrogen.nike.efn.org>
In-Reply-To: <01BC5421.A800A600@atdot>; from John Gunkel on Mon, Apr 28, 1997 at 10:14:26PM -0500
References:  <01BC5421.A800A600@atdot>

next in thread | previous in thread | raw e-mail | index | archive | help
John Gunkel scribbled this message on Apr 28:
> Is it possible?
> 
> My provider is suggesting that he would like my virtual host(s) on a different 
> subnet that my machine's IP address. This would be no big problem, but
> then he also mentions that my machine would have to do some gatewaying. 
> (My apologies for being so vague, he's no easy guy to get info from.)

in a way it is gatewaying... but it really isn't... it's just that they
will simply have a route for the class c that points to your machine...
that way the local ethernet does get swampped with packets for these 
hosts...

> Anyway, I conjured up the idea of creating another dummy device to bind
> to the virtual host subnet, but get the response "no route to host" when I try 
> to ping it.

you don't need to do it.. just attach the aliases to the lo0 device... I
have a notebook that has a 192.168.4.1 alias on lo0 so that it doesn't
have to be net connected to get xdm to run... works perfectly fine with
out the need for another loop back device...

> the device name is lo1, (the second loopback device: NOT 127.0.0.1)
> is configured in a similar way to lo0 except that it has the address 
> 192.168.2.1 whereas ed0 has the address 192.168.1.1 and works 
> beautifully.
> 
> If someone can decipher this, or can point me to some resources
> it would be much apreciated.

all you do is alias the new class c subnet to the lo0 device... the
routes should be automaticly added... so all you need to do is
configure the hosting daemon and you should be off and running...

hope this helps... ttyl..

-- 
  John-Mark
  Cu Networking                             Modem/FAX: +1 541 683 6954

  Live in Peace, destroy Micro$oft, support free software, run FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970428221039.48998>