Re: Default route doesn't change to wireless device (ath0)

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Thu, 8 Sep 2005 15:22:32 -0700
On Thu, Sep 08, 2005 at 03:13:07PM -0700, Jon Dama wrote:
> 
> 
> > > > > And whenever there is a wireless network available (where the system can log
> > > > > in an get a network connection) the default route should be switched to that
> > > > > wireless nic. Or even better, if both connections work, automatically choose
> > > > > the faster one :-).
> > > >
> > > > That's the goal we're headed towards.  Unfortunatly, it's not an instant
> > > > 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. :(
> 
> 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.
> 
> 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

-- 
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

Received on Thu Sep 08 2005 - 20:22:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC