From owner-freebsd-net Sat Mar 17 10:55:46 2001 Delivered-To: freebsd-net@freebsd.org Received: from filk.iinet.net.au (syncopation-dns.iinet.net.au [203.59.24.29]) by hub.freebsd.org (Postfix) with SMTP id A16D437B718 for ; Sat, 17 Mar 2001 10:55:41 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 26536 invoked by uid 666); 17 Mar 2001 18:56:59 -0000 Received: from i003-071.nv.iinet.net.au (HELO elischer.org) (203.59.3.71) by mail.m.iinet.net.au with SMTP; 17 Mar 2001 18:56:59 -0000 Message-ID: <3AB3B2FF.3A04B53C@elischer.org> Date: Sat, 17 Mar 2001 10:54:55 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Alex Pilosov Cc: Nick Rogness , freebsd-net@FreeBSD.ORG, Jeroen Ruigrok/Asmodai Subject: Re: same interface Route Cache References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alex Pilosov wrote: > You don't need to know the interface. You must route based on the source > IP. I.E: > > ISP A ISP B > \ / > ra rb > \ / > your router > | > | > | > (local) > > (ra and rb are respectively edge routers on ISP A and B's end connected to > you). > > Note: On local network, you'll be essentially having two logical > networks (different IPs, subnet, etc) on the same wire. Its not clean, but > its perfectly supported. > > Now, assume you have IPs 11.1.1.* from ISP B, and 11.1.2.* from ISP B. You > configure both IPs to machines on your 'local' network, and have something > like this on the router: > ipfw from 11.1.1.0 fwd ra > ipfw from 11.1.2.0 fwd rb this will do what you want for OUTGOING packets. incoming packets will probably all come in on one network. BTW you could do a more general rule by: ipfw add 3 from any to 0.0.1.0:0.0.1.0 fwd ra out xmt ed0 ipfw add 4 from any to any fwb rb out xmt ed0 (if ed0 was the default) > > If this is not what you wanted to accomplish, please correct me. > > -- > -- > Alex Pilosov | http://www.acecape.com/dsl > CTO - Acecape, Inc. | AceDSL:The best ADSL in Bell Atlantic area > 325 W 38 St. Suite 1005 | (Stealth Marketing Works! :) > New York, NY 10018 | > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message