From owner-freebsd-questions@FreeBSD.ORG Sun Jan 11 10:09:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F44416A4CE for ; Sun, 11 Jan 2004 10:09:03 -0800 (PST) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id BD5A743D66 for ; Sun, 11 Jan 2004 10:08:54 -0800 (PST) (envelope-from dinesh@alphaque.com) Received: (qmail 51715 invoked by uid 0); 11 Jan 2004 18:08:51 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 11 Jan 2004 18:08:51 -0000 Received: from localhost (localhost.alphaque.com [127.0.0.1]) by prophet.alphaque.com (8.12.10/8.12.9) with ESMTP id i0BI8Lac035680 for ; Mon, 12 Jan 2004 02:08:21 +0800 (MYT) (envelope-from dinesh@alphaque.com) Date: Mon, 12 Jan 2004 02:08:21 +0800 (MYT) From: Dinesh Nair To: freebsd-questions@freebsd.org Message-ID: <20040112015152.L336-100000@prophet.alphaque.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: routing to specific network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2004 18:09:03 -0000 hey, i'm on a multihomed FreeBSD 4.9-RELEASE, cvsupped and built to -STABLE as of two weeks ago. the two NICs on the box each go to different ADSL providers. right now, i can switch which provider i use by just manually changing the default route. however, what i'd like to do is to have the default route set to one provider, but manually add static routes to networks closer to the second provider going out that way. EXAMPLE OUTPUT OF NETSTAT -RN: default 192.168.0.1 UGSc 13 2878 fxp0 10.1/16 link#9 UC 2 0 aue0 10.1.105.5 00:e0:7d:03:a2:08 UHLW 0 363 aue0 815 10.1.105.26 00:08:54:d0:5d:2e UHLW 1 0 lo0 60.6/16 10.1.1.1 UGSc 0 0 aue0 127.0.0.1 127.0.0.1 UH 0 12407 lo0 192.168.0 link#2 UC 1 0 fxp0 192.168.0.1 00:30:ab:10:6c:0d UHLW 13 215 fxp0 913 (192.168.0.1 is ISP1's router and 10.1.1.1 is ISP2's router) i've successfully managed to add routes for /16 networks, and 'netstat -rn' as well as 'route -n get' both give the expected results. however, tracerouting to an ip address in one of these static routes still shows that it is going out thru the default route instead of the second provider. running a packet sniffer and attempting a http connection confirmed this. in this case, any packet going to 60.6.1.1 what exactly should i be doing to get the behaviour i desire ? a secondary question is, with the /usr/ports/net/zebra package, can i configure this box to load balance flows over both ADSL connections, assuming i do not have an AS number (for BGP) handy ? i.e. the question is, assuming i make a tcp connection out using a browser (for argument's sake, mozilla), can mozilla send the packet out dynamically on the first NIC (with its IP address as source) and then round robin the next TCP connection off the second NIC (with the second IP address as source) ? would i need the recent multipath patches (though its for 4.8-STABLE) to do this ? Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+