From owner-freebsd-questions Wed Jan 29 6:22: 0 2003 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 1A18537B401 for ; Wed, 29 Jan 2003 06:21:56 -0800 (PST) Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FDEC43F75 for ; Wed, 29 Jan 2003 06:21:56 -0800 (PST) (envelope-from lists@3bags.com) Received: from 3bagsmedia ([207.35.180.174]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030129142155.LXUU23728.tomts10-srv.bellnexxia.net@3bagsmedia>; Wed, 29 Jan 2003 09:21:55 -0500 Reply-To: From: "Phillip Smith (mailing list)" To: "'Lowell Gilbert'" , Subject: RE: How to set-up two 'defaultrouter' IPs? Date: Wed, 29 Jan 2003 09:24:02 -0500 Message-ID: <004b01c2c7a2$122fff40$aeb423cf@3bagsmedia> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <44znpkokrm.fsf@be-well.ilk.org> 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 See reply below... > > To create a somewhat redundant network connection, my friend has > > connected to business level ADSL connections at his home (32 IPs > > each). So, he has two routers, on two different networks > (ATT/UUNET) > > and what he's doing is multi-homing his NIC cards and via some > > interesting DNS set-up, theoretically, there is some network > > redundancy or failover or something. > > > > Anyway, here's the question... how would I set-up two > 'defaultrouter' > > IPs in my rc.conf? Is that were I would do such a thing? > I'd like to > > have the same scenario that he's building with a > multi-homed NIC and > > two IPs per VirtualHost directive. I guess there are actually many > > steps to accomplish this (as I now start to think about it) but I'm > > wondering how to set-up the networking piece first. > > > > Many thanks in advance, > > Two truly default routes is not really sensical. You > generally play games based on source address, TCP port, or > something like that, and > make sure that they NAT separately. [It has to involve NAT, > because for networks that small, you can't get routes > distributed widely enough to do true multihoming.] > > So the answer depends on exactly what hack you want to do. What I'd like to do is this... right now my NIC answers 212.12.12.212 (for instance) externally and that's the address I use for Apache's NameVirtualHost directives. I would also like my NIC to answer on 252.12.12.212 (second network connection) and serve the same VirtualHost directives... So, what happens is, in NS1.NAMESERVER.NET (which is on the 212 network) the A record for my box is 212.12.12.212 and, if that network should fail, the requests will be answered by NS2.NAMESERVER.NET (which is on the 252 network) and it has an A record for my box of 252.12.12.212. So, in effect, the name server's availability actually directs the traffic to the available network connection. Does that make sense? p. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message