Date: Mon, 25 Apr 2011 21:16:46 +0000 From: "Michael K. Smith - Adhost" <mksmith@adhost.com> To: "fbsdmail@dnswatch.com" <fbsdmail@dnswatch.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: RE: two /24's and only one gateway - is routing still possible? Message-ID: <D8CD26287252844898B508C40824D8F4359E10@AD-EXH02.adhost.lan> In-Reply-To: <87e10af65ceb06031196097d7b8920f8.dnswclient@www.dnswatch.com> References: <2b2485288a6e492b3c5c94cc21c79949.dnswclient@www.dnswatch.com> <FE636132-7E89-4901-8A99-96C70D961D4F@mac.com> <87e10af65ceb06031196097d7b8920f8.dnswclient@www.dnswatch.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of fbsdmail@dnswatch.com > Sent: Monday, April 25, 2011 1:09 PM > To: freebsd-net@freebsd.org > Subject: Re: two /24's and only one gateway - is routing still possible? >=20 >=20 > On Mon, April 25, 2011 11:54 am, Chuck Swiger wrote: > > On Apr 25, 2011, at 11:47 AM, fbsdmail@dnswatch.com wrote: > > > >> I have a /24 with a prefix of 168.103.150.xxx with a gateway on this > >> prefix (DSLmodem). > >> I also have a /24 with a prefix of 75.160.109.xxx > >> My question(s) is/are: > >> 1) is it possible to route both of these across the same GW? > >> > > > > If these netblocks were both owned by you directly and you have an ASN, > > or if they're both owned by the same ISP who is willing to route them > > that way, sure. Talk to Quest... >=20 > I lease both, and have ASN's for both. > My question is more; what might be a solution that /I/ might employ > that would permit routing of both blocks across the single GW. > I can envision creating a freebsd based gateway that is directly > connected to the DSLmodem carrying an IP out of the 168 block, and one > out of the 75 block that routes traffic for both /24's. > But this consumes more IP's and creates an additional hop. You can't get there from here. Routing multiple blocks out of any interfa= ce is just a matter of routing. If you're getting into routing discrete bl= ocks, particularly with discrete autonomous system numbers, you will have t= o use BGP. In that case you can look at Quagga or Bird or similar. If you= 're just interested in the routing function, you can use route-to in PF to = set up whatever you wish. The outbound route is not a problem - it's how traffic is going to get back= to you. If you don't have some sort of dynamic routing protocol in play, = then the routes will come back the way your upstream directs them. Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D8CD26287252844898B508C40824D8F4359E10>