*BSD News Article 58015


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!mediasoft.net!not-for-mail
From: Brett Mitchell <brett@pond.net>
Subject: Re: routing question
Message-ID: <30DD1C50.66E1@pond.net>
Date: Sun, 24 Dec 1995 01:24:32 -0800
X-Mailer: Mozilla 2.0b3 (Win95; I)
MIME-Version: 1.0
References: <Pine.BSF.3.91.951223021723.6172o-100000@apollo.COSC.GOV>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 43

You have several options. Static routes would be easiest if you just
want to have a FreeBSD box act as a gateway for 2 Class C's

Are your Class C's Upstream or Downstream?

Downstream - 

To Make An Interface A Gateway:
ifconfig ep0 x.x.x.x x.x.x.x netmask x.x.x.x
	     LocalIP RemoteIP	     Netmask
	     
To Add Routes Use:
route add network remote-machine	

network is the IP space you want to route
remote machine is the machine on the other end of the connection to route to

Hope this helps.

Brett Mitchell
The POND - Live Locally... Network Globally
brett@pond.net
 




-Vince- wrote:
> 
> Hi everyone,
> 
>         I was wondering does anyone know how to advertise the route for a
> Class C address under FreeBSD if the FreeBSD machine is on a 198.94.103.34
> address and we want the FreeBSD machine to be the gateway for
> 205.167.164.0-205.167.165.0?  Any help would be appreciated.  Thanks!
> 
> Cheers,
> -Vince- vince@COSC.GOV - GUS Mailing Lists Admin - http://www.COSC.GOV/~vince
> UC Berkeley AstroPhysics - Electrical Engineering (Honorary B.S.)
> Chabot Observatory & Science Center - Board of Advisors
> Running FreeBSD - Real UN*X for Free!
> Linda Wong/Vivian Chow/Hacken Lee/Danny Chan/Priscilla Chan Fan Club
> Mailing Lists Admin