From owner-freebsd-net Fri Sep 4 12:30:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA18617 for freebsd-net-outgoing; Fri, 4 Sep 1998 12:30:15 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA18608; Fri, 4 Sep 1998 12:30:12 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.1 [OUT])) id MAA10800; Fri, 4 Sep 1998 12:30:56 -0700 (PDT) Received: from utah.XYLAN.COM by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id MAA08223; Fri, 4 Sep 1998 12:28:01 -0700 Received: from softweyr.com by utah.XYLAN.COM (SMI-8.6/SMI-SVR4 (xylan utah [SPOOL])) id NAA14177; Fri, 4 Sep 1998 13:28:00 -0600 Message-ID: <35F19004.88A643C0@softweyr.com> Date: Sat, 05 Sep 1998 13:24:52 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: Vincent Poy CC: freebsd-stable@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: How to add route References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Vincent Poy wrote: > > On Thu, 3 Sep 1998, Stuart Henderson wrote: > > > Vincent Poy wrote: > > > > > each T1 is on a separate interface. What I meant to say was is there a > > > way around the route add default to be pointing to only one interface or > > > IP like making all packets from 208.164.68.0/24 go out of eth0 and > > > 209.84.252.0/24 go out of eth1. Each interface does have it's own IP. > > > > have you read http://www.netaxs.com/~freedman/multi.html? > > (that and other links at http://www.mindspring.com/~jlindsay/bgp.html) > > Just read it... My concerns is not incoming packets not coming in > correctly since each CIDR/24 block comes in on the correct circuit as the > IPs belong to each provider. What I want to know is how to set routes so > that depending on which CIDR/24 block a packet from my LAN is coming from, > which circuit it will use to get the packet out since right now, all > packets going out would be using only one circuit. One simple way to do this is to use two routers, one for each external interface. You can then select which circuit is used by pointing the default route on the client machines at the appropriate router. When using old PC hardware and FreeBSD, routers become pretty cheap. ;^) The other solution would be to NOT define a default route on the router, but rather to configure gated with both interfaces in Silent or Active mode, and let the learned routes take care of the problem for you. These would still be routed by destination, not by source, but the overall effect should be to balance the load according to the "costs" of the routes. This conversation is much more appropriate for the freebsd-net mailing list, so I've cc'ed it over there. Please rejoin the thread there, if necessary. -- Where am I, and what am I doing in this handbasket? Wes Peters +1.801.915.2061 Softweyr LLC wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message