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!solace!news.stealth.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!agate!soda.CSUA.Berkeley.EDU!richardc From: Veggy Vinny <richardc@soda.CSUA.Berkeley.EDU> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: FreeBSD as a router? Date: Fri, 1 Nov 1996 23:05:09 -0800 Organization: University of California, Berkeley Lines: 43 Message-ID: <Pine.PTX.3.95.961101225743.20230e-100000@soda.CSUA.Berkeley.EDU> NNTP-Posting-Host: soda.csua.berkeley.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <199611020441.UAA07698@soda.CSUA.Berkeley.EDU> On Fri, 1 Nov 1996, Ken Lam wrote: :> >Greetings everyone, :> > :> > I remembered that FreeBSD can be used as a router... I was :> >wondering what I need to do exactly if my machine had a connection to :> >the :> >rest of the internet as 198.94.103.34 and then I wanted my machine to :> >be the gateway for the network 205.167.164.0 and assign my machine :> >205.167.164.34 which will be the internal network, what would I need to do :> >exactly and how do I advertise the routes for 205.167.164.0 to go through :> >198.94.103.34? Thanks. :> :> You need to enabled GATEWAY in the kernel (or set the option using :> sysctl in the boot config). The rest depends on your existing net :> config. If you are doing dynamic routing, you need to have the :> machine advertise the routes. If not, your provider needs to :> add static routes. I'm running FreeBSD -current so there isn't a GATEWAY option available in the kernel anymore but I do have sysctl on in my sysconfig. :> For such a simple network, static routes are probably best, but :> should you choose to grow to a rich and diverse network, gated :> might be the best (it supports OSPF and BGP). Routed in :> 2.1.5 and later supports Rip V2. Ah okay, let's imagine I only have one machine now and I wanted to do my own advertising of static routes. So if my incoming connection was 198.94.103.34 and I wanted my machine as the gateway as well as known as 205.167.165.120 which is my class c network instead of the 198.94.103.34 when connecting to another machine on the net and have the routing broadcast from my machine to the rest of the net, what do I need to do exactly? My machine has a 3Com Etherlink III ISA Combo card now but it's not connected to anything. Also, what should my ifconfig lines say for lo0 and ep0? Vince GaiaNet Corporation - Unix Netowrking Operations - GUS Mailing Lists Admin