Subject: Re: Flexible interface selection
To: Peter Seebach <seebs@plethora.net>
From: Feico Dillema <feico@pasta.cs.uit.no>
List: current-users
Date: 08/12/2001 02:37:42
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?
Note that in 1.5.1 and -current you can add commands in them too to
run dhclient or rtsol and the like. For example, I have two such files
with contents like:

1 dillema@drifter:~> more /etc/ifconfig.tlp0 
up
# autoconfigure IPv4 with dhclient
!dhclient $int
# autoconfigure IPv6 with rtsol
!rtsol $int

Works really nice...

Feico.