*BSD News Article 93779


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news-peer.sprintlink.net!sprint!news-pull.sprintlink.net!news.sprintlink.net!gryphon.phoenix.net!alpha1.phoenix.net!pflores
From: Paul Flores <pflores@phoenix.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2 Class C on 1 machine??
Date: Thu, 17 Apr 1997 09:55:47 -0500
Organization: C-Com/Phoenix Data Net (281) 486-8337/ http://www.phoenix.net
Lines: 74
Message-ID: <Pine.OSF.3.95.970417094121.26147A-100000@alpha1.phoenix.net>
References: <3353e674.98189476@snews2.zippo.com> <5j4bn5$sjc$3@easystreet03>
NNTP-Posting-Host: alpha1.phoenix.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <5j4bn5$sjc$3@easystreet03>
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39223


On 17 Apr 1997 tedm@portsoft.com wrote:

> In <3353e674.98189476@snews2.zippo.com>, stephen@lainet.com (Stephen) writes:
> >
> >Hi,
> >
> >We currently have a Pentium running FreeBSD doing virtual hosting for
> >a bunch of class C IPs.  This machine is connected to the Internet via
> >a Cisco router.

Excellent, Good choice :> I do have once question: How many is 'a bunch' ?

> >
> >We have heard that the Cicso router can be configured to handle
> >multiple class C IPs.  If this is the case, can the same computer
> >handle IPs from the new class C address?  How?


> It sounds like you need to host more than 256 virtual domains on your FreeBSD
> machine, no?
> 
> If you try the scheme that your are thinking of doing, your probably going to
> freak out your router, because you will be having arps with the same
> MAC address coming from both subnets.  It would be interesting to try it
> and see what happens, though.
> 

Please... What kind of piss-ant router would have a problem with this.
Maybe an Ascend would have a problem with this, cerianly not a company
that has done routing for any length of time.

To the orignal question:

All you need to do is add this command in IOS: 
If it is like a 2500:
config t <CR>

#If it is the 1st Ethernet
int e 0 <CR>
ip address x.x.x.x y.y.y.y secondary <CR>
exit <CR>

where xxxx and yyyy are ip address and subnet.
You can add up to (I think) 64 secondary addresses (though I think
your ethernet will die long before you get there)


Naturaly, you would need to add a coresponding ifconfig command to your startup
config on your FreeBSD machine (Sound like you have that part licked)

or, you could just use 2 or 4 consequtive class C networks and SuperNet
them. IE

for 4 class C ranges on one interface . . .

ip address 199.3.232.1 255.255.252.0

I can then use IPs between 199.3.232.2 and 199.3.234.254 on that one wire.
(Please note the subnet)
	

> What I'd suggest that you do is move to using a class B address with a
> standard class B subnet mask of 255.255.0.0   If you have that many clients, you
> should be able to obtain a class B from your provider.

HA! Ha! Ha! Haaaaa! Please, your killing me! Our ISP has over 200 Class C Networks
and we can't get a class B to save our lives! There is NO WAY someone who
has managed to overrun a single class C is going to get a class B.

To rephrase that, There will be ski holidays in Hades before your provider
will grant you a class B if all you have is a single class C that is full.

Paul Flores