*BSD News Article 81044


Return to BSD News archive

From: simon@orac.office.onechip.co.uk (Simon Richardson)
Subject: Virtual hosts/virtual IP
Newsgroups: comp.unix.bsd.freebsd.misc
X-Newsreader: TIN [version 1.2 PL2]
NNTP-Posting-Host: orac.office.onechip.co.uk
Message-ID: <3266101e.0@calvin.aspen-internet.net>
Date: 17 Oct 96 10:53:18 GMT
Lines: 20
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!btnet!btnet-feed1!theplanet.net!knews.uk0.vbc.net!calvin.aspen-internet.net!orac.office.onechip.co.uk!simon

Apologies if this is a commonly asked question.

We would like to have one machine respond to maybe a dozen IP addresses, so
that we can run virtual websites.  The machine we would like to do this feat
is running FreeBSD 2.1, and connected via an ethernet card.  What we don't
want to do is hang a dozen serial/ethernet cards off it, so what we want is
to allocate a block of addresses to the one card.

I believe we need something called a "virtual interface".  Does such a beast
exist for FreeBSD?  (And if it doesn't, can anyone offer pointers on writing
one?  I know C pretty well, and have written character device drivers for
386BSD and MS-DOG.)

Our newsfeed is really flaky, so please copy to E-mail.

Simon

------------------------------------------------------------------------
Simon Richardson                One Chip Solutions
Network Administrator           85, St Judes Road        
                                Englefield Green
                                EGHAM
                                Surrey TW20 ODF 
                                ENGLAND        
E-mail:        simon@onechip.co.uk      Tel (+44 1784/ 01784) 434568