Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!bloom-beacon.mit.edu!newsfeed.internetmci.com!in2.uu.net!agis.ag.net!usenet From: root@ag.net (Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: routing question Date: 5 Jan 1996 06:14:37 GMT Organization: Access Global Information Services Lines: 60 Message-ID: <4cifkd$34g@agis.ag.net> References: <Pine.BSF.3.91.951223021723.6172o-100000@apollo.COSC.GOV> <30DD1C50.66E1@pond.net> NNTP-Posting-Host: ppp8.ag.net X-Newsreader: WinVN 0.92.6 In article <30DD1C50.66E1@pond.net>, Brett Mitchell <brett@pond.net> says: > >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 [Before the route add, do this: ifconfig ep0 alias x.x.x.x Local IP What I did was ifconfig ntwo0 inet x.x.x.x x.x.x.x netmask x.x.x.x up RemoteIP LocalIP then: ifconfig we0 inet x.x.x.x LocalIP of additional ip assigned to additional domain then: route add x.x.x.x x.x.x.x LocalIP Loopback (127.0.0.1) Hope that helps] >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 >