From owner-freebsd-current@FreeBSD.ORG Thu Sep 8 22:22:33 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B60CB16A41F for ; Thu, 8 Sep 2005 22:22:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DA1B43D45 for ; Thu, 8 Sep 2005 22:22:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j88MMWMX013877; Thu, 8 Sep 2005 15:22:32 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j88MMWqB013876; Thu, 8 Sep 2005 15:22:32 -0700 Date: Thu, 8 Sep 2005 15:22:32 -0700 From: Brooks Davis To: Jon Dama Message-ID: <20050908222232.GA12398@odin.ac.hmc.edu> References: <20050901225346.0923E16A41F@hub.freebsd.org> <200509072128.04819.incmc@gmx.de> <20050907194130.GA2436@odin.ac.hmc.edu> <200509072223.20560.incmc@gmx.de> <20050907211811.GA19570@odin.ac.hmc.edu> <20050908214834.GA8000@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: Jochen Gensch , freebsd-current@freebsd.org Subject: Re: Default route doesn't change to wireless device (ath0) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 22:22:33 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 08, 2005 at 03:13:07PM -0700, Jon Dama wrote: >=20 >=20 > > > > > And whenever there is a wireless network available (where the sys= tem can log > > > > > in an get a network connection) the default route should be switc= hed to that > > > > > wireless nic. Or even better, if both connections work, automatic= ally choose > > > > > the faster one :-). > > > > > > > > That's the goal we're headed towards. Unfortunatly, it's not an in= stant > > > > thing, particularly when people trying things like what you're doing > > > > that don't map well into the old world view of static devices that = don't > > > > change networks. The old model is wrong and has been so for quite = some > > > > time, but that doesn't mean there aren't assumptions related to it = all > > > > over the place. > > > > > > Again, the problem is with the routing code. You should NOT need to = be > > > deleting default routes simply because one link goes down and another > > > comes up on a different interface. > > > > > > Deleting the route simply because the interface went down is a hack. > > > > Got a new routing implemention handy? Until then, well have to live > > with hacks. :( >=20 > True enough. I think the general idea is that you need a two layer > routing table. One that keeps tract of what is possible, and one that > keeps track of what is happening w.r.t existing flows. Once an interface > link goes down, the route in the second table invaliadates and you go back > to the first to find a new route. >=20 > afaik, this is what is done in SunOS, on cisco hardware... MS might do it > too, certainly their handling of default routes meshes well with the > wireless world. I believe andre implied that we would be close to the desired state after his current round of work. If so, that will be great because all sorts of problems just go away if we can have multiple routes to the same network(s) and select the right one via appropriate metrics. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDILmnXY6L6fI4GtQRAkB6AJ9hYcZ77vCeIMZCadpPYEdoWxeSswCePKOc 6BL53IElNme3hILoK11utSo= =iEu5 -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--