[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Very basic multiple-interface configuration

On Tue, Jan 27, 2004 at 03:30:01PM -0500, David Z Maze wrote:
> My laptop has both on-board wired Ethernet and 802.11a/b wireless.
> Both of these work fine; I'm using them with ifplugd and it behaves
> mostly as I expect.  But the thing is, I recently took the CVS version
> of the madwifi Atheros 802.11 driver, and so now ifplugd actually
> tries to start the wireless...
> Is there a good tool for setting up the networking "properly"?  In
> particular, I'd like the system to:
> (1) Prefer the wired Ethernet if it's available, and not put a default
>     route via ath0 [wireless] if there's already a default route via
>     eth0 [wired].

I use
if test "`/sbin/mii-tool`" = "eth0: no link";
as a very simple test in a similar situation.  There's probably some tool
with does it better, though.  (That's from my .xinitrc:  I start a power
monitor if there's no wired ethernet, and a web browser if there is.)

Jon Leonard

Reply to: