From owner-freebsd-questions Fri Dec 27 8:13:48 2002 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 C66F037B401 for ; Fri, 27 Dec 2002 08:13:46 -0800 (PST) Received: from web-01.mrpc.com (web-01.mrpc.com [64.6.187.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF8D943ED8 for ; Fri, 27 Dec 2002 08:13:45 -0800 (PST) (envelope-from tjg@falconsoft.com) Received: from web-01.mrpc.com ([64.6.187.219]) by web-01.mrpc.com (8.12.3/8.12.3) with ESMTP id gBR0tPXS084225 for ; Fri, 27 Dec 2002 00:55:25 GMT (envelope-from tjg@falconsoft.com) Received: (from www@localhost) by web-01.mrpc.com (8.12.3/8.12.3/Submit) id gBR0tOhZ084224; Fri, 27 Dec 2002 00:55:24 GMT (envelope-from tjg@falconsoft.com) X-Authentication-Warning: web-01.mrpc.com: www set sender to tjg@falconsoft.com using -f Received: from 24.187.33.72 (SquirrelMail authenticated user em1110) by mrpc.com with HTTP; Fri, 27 Dec 2002 00:55:24 -0000 (GMT) Message-ID: <1313.24.187.33.72.1040950524.squirrel@mrpc.com> Date: Fri, 27 Dec 2002 00:55:24 -0000 (GMT) Subject: Multi-Homed Host From: "Timmer" To: X-Priority: 3 Importance: Normal Reply-To: tjg@falconsoft.com X-Mailer: SquirrelMail (version 1.2.8) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello I am trying to set up a FreeBSD 4.7-STABLE machine so that it has one network card and two IP addresses, each on a different logical network. Here's the configuration: Logical Net 1: (Cable, 3M) IP ADDR: 192.168.1.2 NETMASK: 255.255.255.0 GATEWAY: 192.168.1.1 Logical Net 2: (FRAC-T1, 384K) IP ADDR: 216.46.79.72 NETMASK: 255.255.255.192 GATEWAY: 216.46.79.65 This machine runs a web server (and a few other things), so all that traffic must happen on the T1. However, the T1 is significantly slower than my cable connection, so I would like the machine to use the cable connection for downloading large files and so on. Is there any way to configure FreeBSD to essentially have two default gateways, and to choose the correct gateway based on the source IP address (that is, if I try to FTP from the 192.168.1.2 address, it should send all the traffic out the 192.168.1.1 gateway)? Any help is greatly appreciated. Thanks. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message