Subject: Re: Flexible interface selection
To: None <>
From: Feico Dillema <>
List: current-users
Date: 08/12/2001 13:20:20
On Sat, Aug 11, 2001 at 07:40:52PM -0500, Peter Seebach wrote:
> In message <>, Feico Dillema writes:
> >On Sat, Aug 11, 2001 at 06:30:14PM -0500, Peter Seebach wrote:
> >> I'm trying to find a clean way to express a feature I sort of want.  The
> >> feature is this:  When my wireless card is plugged in, I want NetBSD to
> >> use it.  When it's not, I want NetBSD to use the ethernet port.
> >Hmmm, cannot you already do all this using /etc/ifconfig.<ifn> files?
> I don't think so, because I want only one interface configured, and whichever
> one it is, I want it to get the machine's address, which doesn't change.  So,
> if I have an ifconfig.tlp0, and the wireless is in, the tulip *also* gets
> configured, which I don't want.

how about a line in ifconfig.tlp0 like:

!ifconfig -s an0 || ifconfig $int etc...

this will only configure tlp0 if an0 is not there or doesn't see a
network. I use that to let the an0 try different network settings
(home network, university network, city network etc...)