*BSD News Article 93726


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!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!europa.clark.net!newsfeed2!news.easystreet.com!not-for-mail
From: tedm@portsoft.com
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Class C Routing
Date: 17 Apr 1997 06:23:23 GMT
Organization: Easystreet Online Services
Lines: 28
Message-ID: <5j4fkr$sjc$10@easystreet03>
References: <33535C4D.7321@enta.net>
Reply-To: tedm@portsoft.com
NNTP-Posting-Host: mail.portsoft.com
X-Newsreader: IBM NewsReader/2 v1.2.5
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39195


In <33535C4D.7321@enta.net>, Simon N Atkin <simat@enta.net> writes:
>Help !!!
>
>How do you setup routing between two class C 's of 
>FreeBSD 2.2.1, I am having problems because our ISP
>is on a different class C (36) to me (132).
>
>I have tried the following
>
>route add (internet gateway IP) (my local IP) 1
>route add -net (ISP Class C x.x.36) (my local IP x.x.132.1) 1
>

make sure routing is turned on in the /etc/sysconfig file.

make sure your not passing the -q option to routed. (check in sysconfig)

If your routers on the ISP's net are advertising a default route, you don't need to
do anything.  If they aren't you may need to add a "route add default (internet
gateway IP) 1 in the FreeBSD machine.

If your having routing trouble, I suggest you start by drawing the network on
a piece of paper, then writing down the route tables in each router in the network.
this excercise will help you to get clear in your mind what you want to do.
for "normal" routing you shouldn't need to be adding fancy route commands,
the only route you really need to care about being right in the machines is the
route to 0.0.0.0, the default route.