From owner-freebsd-isp Mon Apr 28 22:11:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA25484 for isp-outgoing; Mon, 28 Apr 1997 22:11:31 -0700 (PDT) Received: from hydrogen.nike.efn.org (metriclient-13.uoregon.edu [128.223.172.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA25474 for ; Mon, 28 Apr 1997 22:11:24 -0700 (PDT) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.4/8.8.4) id WAA16097; Mon, 28 Apr 1997 22:10:40 -0700 (PDT) Message-ID: <19970428221039.48998@hydrogen.nike.efn.org> Date: Mon, 28 Apr 1997 22:10:39 -0700 From: John-Mark Gurney To: John Gunkel Cc: "'freebsd-isp@freebsd.org'" Subject: Re: virtual hosts through gateway to dummy net device References: <01BC5421.A800A600@atdot> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <01BC5421.A800A600@atdot>; from John Gunkel on Mon, Apr 28, 1997 at 10:14:26PM -0500 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2-960801-SNAP i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-isp@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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