wired to wireless fallback
I'm currently running RedHat 9 on a Dell C800 laptop, w/ an integrated (wired) NIC and a pcmcia orinoco card. Everything is working fine, including (after a bit of googling, poking, and prodding) the wireless card. NIC on eth0, wireless on eth1, both connect via dhcp at work, both have ping-able IPs, etc. All well and good.
Here's what I'm trying to figure out. The wire, as eth0, is the default connection, and that's how I'd like it (faster connection to local shares, etc). What I'd like is for the networking to automatically start using the wireless connection (if available, obviously) if I unplug the wire to go to a meeting or whatever. This happens in windows, but so far I haven't figured out how to make it happen in linux. I know I can write a script to ifdown eth0 and ifup eth1, but I'd like it to happen on its own, if possible.
Ideally, there'd be some sort of preference list for network connections. If the first isn't available, use the second; likewise, if the first becomes available, go back to it.