Subject: Re: dhclient and selecting a default route amongst several interfaces
To: Brian de Alwis <bsd@cs.ubc.ca>
From: Jonathan A. Kollasch <jakllsch@kollasch.net>
List: netbsd-users
Date: 08/16/2006 22:55:11
--Oiv9uiLrevHtW1RS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Aug 16, 2006 at 10:16:47AM -0700, Brian de Alwis wrote:
> [I was hoping somebody here might have a pre-worked out solution.
> I've tried doing a tiny bit of reading of routed's man page, but
> it required a bit more knowledge than I can give time to right now.
> I have also tried scrounging through the mailing lists, but didn't
> find anything quite right. (And `/etc/rc.d/routed forcestart' and
> playing didn't seem to DTRT :-)]
>=20
> I have a laptop with two network interfaces: wm0 for a wired
> ethernet, and ath0 for wireless, and as I move between locations
> a bit, I have dhclient set to listen on both interfaces.
>=20
> At school I have two ways to connect to the net, through wireless
> or a wired connection. I generally prefer using the wired ethernet
> as it's faster and more reliable. But with dhclient also listening
> to wireless, this means the interface chosen for the default route
> depends on chance, and I'd like to fix this.
>=20
> Although I could just hack some code into dhclient-exit-hooks to
> forcibly decide the issue, I was wondering if I could use something
> a bit more dynamic. The wired network does hiccup very occasionally,
> and it would be cool to have some kind of seamless switching. Is
> routed the right solution for this?
>=20
> (I'm not worried about load balancing; I never saturate these pipes.
> My interest in this is for synchronizing my laptop contents with
> unison, and transferring podcasts -- the 1MB/s I often get from
> the wired network is much better than than the wireless' 200k/s!)
>=20
> Brian.
Not quite what you're asking, but, perhaps something like I=20
describe at the bottom of http://jakllsch.kollasch.net/Santraginus ?
Jonathan Kollasch
--Oiv9uiLrevHtW1RS
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFE4+ifOjx1ye3hmokRAsQeAJ4vvsgwh+DCsmfWjudMjpRHYoiO9QCfemjw
LjjA1n1qX7SOezOwprUZWX4=
=cbm0
-----END PGP SIGNATURE-----
--Oiv9uiLrevHtW1RS--