*BSD News Article 84292


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!news.wildstar.net!serv.hinet.net!spring.edu.tw!news-peer.gsl.net!news.gsl.net!howland.erols.net!newsfeed.internetmci.com!uuneo.neosoft.com!news
From: Doug Walker <dwalker@atomic.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Routing for a subnet with FreeBSD
Date: Thu, 05 Dec 1996 14:40:57 -0600
Organization: Atomic Games
Lines: 63
Message-ID: <32A73359.2049@atomic.com>
References: <chad-2611961220400001@c_leigh.dtint.com>
NNTP-Posting-Host: 206.109.89.66
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win95; I)

I played with almost this exact setup (although one of the links is PPP)
for
5 days and got absolutely nowhere.  last night I just decided to add
static
routes on the machine with the direct connection at our ISP to each
subnetted 
machine.  Works great, but only in a pretty static situation.  If you
figure 
this out please let me know either here or mailto:dwalker@atomic.com

Thanks

Doug Walker

Chad Leigh wrote:
> 
> Hi
> 
> I have a set of (currently) 4 machines I am colocating at my ISPs.  He has
> given me one 10bT wire and set me up on one of his segments.  He has
> assigned me one IP in his subnet and is routing stuff to me through that
> IP.
> 
> I have a class C network assigned to me.  I want to subdivide that Class C
> so that one subnet of 128 (upper 128 addresses minus whatever overhead) is
> at my colocation and one subnet (first 32 addresses) is at my other
> location over my feed.  The other subnets will be assigned as needed.
> 
> The 4 co-located machines are hooked to a dumb hub at the ISPs location.
> This hub is hooked to his hub.
> 
> I have designated one of my machines to act as a router for my subnet there.
> 
> What I want to do is have the main IP address (from /etc/sysconfig) set to
> the address in the ISPs subnet space (being routed too).  I want to assign
> the ethernet port an alias IP address existing in my subnet.  The router
> for this machine is assigned to be the router for the ISPs subnet.  All
> other machines have addresses in my subnet.  What I need to know is where
> to put the alias IP address ifconfig (adding an extra ifconfig_de0 seemed
> to screw up the startup) and the commands needed (including netmask) to
> set up routing for this machine and others in the subnet.  This machine
> needs to route packets coming in on the ISP assigned address to machines
> in the subnet and also needs to take packets from them (or itself)
> destined for outside the subnet and route them out.
> 
> The ISP assigned IP is 199.104.120.223 and the router for this network is .1
> 
> My Class C is 204.228.145.0
> 
> The subnet at the ISP is 204.228.145.upper128-addresses
> 
> The subnet at my other location with a link to the ISP is 204.228.145.first32
> 
> The main machine doing the routing has the IPs 199.104.120.223 and
> 204.228.145.130
> 
> Please help me get the places for the various setups (sysconfig etc) and
> exactly what to put in there (ifconfig, route add, etc).  I played around
> with this last night for almost two hours without great success.  The main
> machine itself can route for itself to the ISPs net but nothing else.
> 
> Thanks
> Chad