From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 12:55:24 2005 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 D3BF916A4CE for ; Wed, 2 Feb 2005 12:55:24 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8423E43D1F for ; Wed, 2 Feb 2005 12:55:24 +0000 (GMT) (envelope-from tbonius@comcast.net) Received: from ostros (c-24-18-102-54.client.comcast.net[24.18.102.54]) by comcast.net (rwcrmhc11) with SMTP id <2005020212552101300k8e24e>; Wed, 2 Feb 2005 12:55:21 +0000 Message-ID: <00bc01c50926$9f469f20$c900a8c0@ostros> From: "Thomas Foster" To: "Gustafson, Tim" References: Date: Wed, 2 Feb 2005 04:56:33 -0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 cc: questions@freebsd.org Subject: Re: Routing Problem 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: Wed, 02 Feb 2005 12:55:25 -0000 Hi Tim.. If you have multiple interfaces and you configure a default gateway for each interface, the default metric determination that is based on the speed of the interface usually uses the fastest interface for default gateway traffic. This is usually desirable in configurations in which the computer is connected to the same network. This behavior can become a problem when the computer exists on two or more disjointed networks (networks that do not provide symmetric reachability on layer3). Symmetric reachability exists when packets can be sent to and received from an arbitrary destination. Because the TCP/IP version4 protocol uses a single default route in FreeBSD's routing table at any one time for default route traffic, default routers configured on multiple interfaces connected to two or more disjointed networks can wreak routing traffic havoc. In FreeBSD, you can manually configure the routing table for the individual interfaces.. but it sounds to me as if you are attempting to use two ethernet interfaces connected to two disjointed networks connected to routers with two seperate subnets in order to balance http requests to one server.. is this the case? I guess I am not fully understanding your configuration ... T. ----- Original Message ----- From: "Gustafson, Tim" To: "Thomas Foster" Cc: Sent: Wednesday, February 02, 2005 4:06 AM Subject: RE: Routing Problem > Thomas, > > No, I'm not using this box as a router. It is a web server, and I need > to spread the load of my web traffic across two separate T1s. > > I can't just add routes. You need a default route, or parts of the > internet would become inaccessible. In my case, you need TWO default > routes. I have set up Cisco equipment and Windows workstations with two > default routes in the past, and it has worked. In fact, I have one > Windows box right now that is configured on both these networks with two > default gateways, and it is working. > > There has to be a way to make it work on FreeBSD. > > Tim Gustafson > MEI Technology Consulting, Inc > tjg@meitech.com > (516) 379-0001 Office > (516) 480-1870 Mobile/Emergencies > (516) 908-4185 Fax > http://www.meitech.com/ > > > > -----Original Message----- > From: Thomas Foster [mailto:tbonius@comcast.net] > Sent: Wednesday, February 02, 2005 4:48 AM > To: Gustafson, Tim > Cc: questions@freebsd.org > Subject: Re: Routing Problem > > > Im confused.. if you have two T1s, then are using /30s dor the ranges? > If > so.. what about not giving a default gateway for either one and just add > > routes... > > Are you attempting utilize this as just a router.? > > Theres a section that covers setting up routing on interfaces in the > handbook: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routin > g.html > > Hope this helps > > T > ----- Original Message ----- > From: "Gustafson, Tim" > To: > Sent: Tuesday, February 01, 2005 5:35 PM > Subject: Routing Problem > > >>I am having a problem setting up a multi-homed host. I have two >> separate T1 internet connections, and one physical NIC in my FreeBSD >> box. The two networks are as follows: >> >> Connection 1: >> LAN Address: 1.2.3.24/25 >> Router Address: 1.2.3.1 >> >> Connection 2: >> LAN Address: 4.5.6.106/29 >> Router Address: 4.5.6.105 >> >> I would like to set up my FreeBSD box so that I can connect to either >> LAN address from the outside world. The problem is that I cannot >> specify two default gateways. Right now, I have 1.2.3.1 set up as a >> default gateway, and I can get to the 1.2.3.24 IP from the outside >> world. However, I can't get to 4.5.6.106. I can't even ping it. > From >> the FreeBSD box, I can ping 4.5.6.105, and from the outside world I > can >> ping 4.5.6.105, but I can't ping 4.5.6.106 from the outside world. >> >> Is there any way to make this work? How can I make FreeBSD have two >> default gateways? I read somewhere about being able to set up source >> routing, but I haven't been able to find any HOWTO's about that. >> >> Any help is greatly appreciated. >> > > >