From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 19:23:16 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 9701E16A4CE for ; Mon, 19 Jul 2004 19:23:16 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E0D543D39 for ; Mon, 19 Jul 2004 19:23:15 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i6JJMjsn038355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Jul 2004 20:22:45 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i6JJMjIY038128; Mon, 19 Jul 2004 20:22:45 +0100 (BST) (envelope-from matthew) Date: Mon, 19 Jul 2004 20:22:42 +0100 From: Matthew Seaman To: "Web Walrus (Robert Wall)" Message-ID: <20040719192242.GA69765@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Web Walrus (Robert Wall)" , Nelis Lamprecht , FreeBSD Questions Mail List References: <20040719040431.V19557@iceberg.web-walrus.com> <1090230731.24867.41.camel@nelis.brabys.co.za> <20040719043004.T19557@iceberg.web-walrus.com> <20040719112823.GC21175@happy-idiot-talk.infracaninophile.co.uk> <20040719124619.V19557@iceberg.web-walrus.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <20040719124619.V19557@iceberg.web-walrus.com> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.5.3 (smtp.infracaninophile.co.uk [0.0.0.0]); Mon, 19 Jul 2004 20:22:45 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Questions Mail List cc: Nelis Lamprecht Subject: Re: Routing issue 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: Mon, 19 Jul 2004 19:23:16 -0000 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 19, 2004 at 12:55:45PM -0500, Web Walrus (Robert Wall) wrote: > > > > > ifconfig_dc0 inet 1.2.3.4 netmask 255.255.255.248 > > > > > ifconfig_dc0_alias0 inet 2.3.4.5 netmask 255.255.255.248 > > > > > defaultrouter=3D"1.2.3.1" > > > > > > It's not on the same network; that's the problem. Two complete separ= ate > > > networks, same interface card. The issue is that one of the networks > > > works, and the other doesn't, depending on what network the default r= outer > > > happens to be on. > > > > In general, you're going to need a mechanism for dynamically routing > > packets in order to make this sort of setup work. For most setups, > > you'ld need the co-operation of your ISP to make things work as well. >=20 > The situation is this - there are 4 servers that are on one network. I'm > trying to switch them over to another network, but I need to do it without > downtime. Therefore, I need to have both IPs completely active and > functional simultaneously. Right -- in which case, you've actually done everything right, > Is there any way to determine what IP/interface a connection came in on, > and continue to use that IP/interface for the outbound packets? Maybe > with static routes or something of that nature? That should happen automatically whenever anyone connects to one or other of those addresses. It's setting the origin address on outgoing connections that's usually the difficult bit, but in this case, that shouldn't be a problem. Really all you need to do is at some point change the default route to point to the new gateway, and then wait until any traffic to the old addressess dies away. Then edit /etc/rc.conf to make the new ip address the only one configured on the interface and whatever else needs fiddling with similarly, a quick reboot and you're done. Cheers Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA/B+CiD657aJF7eIRAq6MAJ4qIKOqGkNEnrqePn2UulaFZQdQBACgtiry h0/v5X0lYaDOyiDf8UecZKM= =SbU9 -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq--