[ltp] ideal network auto detection

Tino Keitel linux-thinkpad@linux-thinkpad.org
Thu, 22 Jul 2004 11:02:27 +0200


On Wed, Jul 21, 2004 at 18:33:20 -0400, Brad Langhorst wrote:
> Here's what I want my networking logic to look like:
> 
> If ethernet is plugged in and can lease an address 
> use it and disable the wlan interface.
> Otherwise look for wifi networks that are on my list of approved
> networks and associate to the one with the best signal.
> 
> Seems pretty simple right?
> 
> what are the best tools to do this?
> ifplugd, laptop-net, hotplug?

I use hotplug, ifplugd, waproamd and pump (for DHCP), wich works pretty
well to get a network configuration everytime the cable is plugged in
or the WLAN card is inserted.

The only problem is the use of the cable LAN instead of wireless if the
former is available. Maybe this can be done with a script which brings
down the WLAN if eth0 was successfully configured via DHCP. The pump
DHCP client can call a script at certain events, so you can stop the WLAN
if eth0 got a DHCP lease.

Regards,
Tino