*BSD News Article 83639


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!xmission!c_leigh.dtint.com!user
From: chad@pengar.com (Chad Leigh)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Routing for a subnet with FreeBSD
Date: Tue, 26 Nov 1996 12:20:40 -0700
Organization: Digital Technology International
Lines: 51
Message-ID: <chad-2611961220400001@c_leigh.dtint.com>
NNTP-Posting-Host: itchy.itsnet.com


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