From owner-freebsd-questions Mon Sep 7 18:06:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10649 for freebsd-questions-outgoing; Mon, 7 Sep 1998 18:06:34 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from rucus.ru.ac.za (rucus.ru.ac.za [146.231.29.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id SAA10639 for ; Mon, 7 Sep 1998 18:06:24 -0700 (PDT) (envelope-from nbm@rucus.ru.ac.za) Received: (qmail 25277 invoked by uid 1003); 8 Sep 1998 01:06:16 -0000 Message-ID: <19980908030614.A24575@rucus.ru.ac.za> Date: Tue, 8 Sep 1998 03:06:14 +0200 From: Neil Blakey-Milner To: nbrown@whos.net, questions@FreeBSD.ORG Subject: Re: Question :) References: <199809080016.UAA25760@sparticus.bright.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199809080016.UAA25760@sparticus.bright.net>; from Nic Brown on Mon, Sep 07, 1998 at 08:16:39PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon 1998-09-07 (20:16), Nic Brown wrote: > I recently have thought of the idea of using my FreeBSD box to do > virtual hosting, however I'm not sure how I can assign multiple IP > Addresses to only one NIC card. If you would, please explain to > me or show me a URL that explains how to do it in FreeBSD 2.2.2? Basically: ifconfig "networkcard" alias "alias-ipaddress" In my case, ifconfig ed0 alias 146.blah.blah.2 ifconfig ed0 alias 146.blah.blah.3, etc. If the alias-ipaddress is in the same network mask, add "netmask 255.255.255.255", I think. The routes should be set up automatically. Basically, man ifconfig, and read through it. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message