*BSD News Article 93789


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!fjholden.OntheNet.com.au!not-for-mail
From: Tony Griffiths <tonyg@OntheNet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2 Class C on 1 machine??
Date: Fri, 18 Apr 1997 10:28:01 +1000
Organization: On the Net (ISP on the Gold Coast, Australia)
Lines: 33
Message-ID: <3356C011.734@OntheNet.com.au>
References: <3353e674.98189476@snews2.zippo.com>
Reply-To: tonyg@OntheNet.com.au
NNTP-Posting-Host: swanee.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (WinNT; I)
To: Stephen <stephen@lainet.com>
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39247

Stephen wrote:
> 
> 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.
> 
> We have heard that the Cicso router can be configured to handle
> multiple class C IPs.

I would definitely hope so!!!  Our Cisco's seem to be doing it ok...

>  If this is the case, can the same computer
> handle IPs from the new class C address?  How?

Basically, add the IP addresses to you Ethernet (or better still lo0)
interface as per normal (ifconfig .... alias).  Have the default route
point at the Cisco and on the Cisco have a route for the second Class C
network that points to the primary IP address of the VW server.

If you are lucky and the two Class-C's are contiguous and are an
{even,odd} pair [eg. xxx.yyy.zzz.68 and .69] then you set them up as a
CIDR block with a netmask of 255.255.254.0 (ie. 23 bits of network and 9
bits of host address).  Note that an {odd,even} pair [eg. .69, .70]
CANNOT be turned into a CIDR block!!!

If you already have a substantial network running then resetting all
host netmasks and rebooting is probably more works than the gain of the
CIDR block so just use the first option with an explicit route in the
CISCO!

Tony