network config with two network cards as route to gateway

dsr at tao.merseine.nu dsr at tao.merseine.nu
Wed Jul 7 06:33:01 EDT 2004


On Wed, Jul 07, 2004 at 01:14:51AM -0400, David Kramer wrote:
> So how do I set up the routing table such that when eth0 is live, I use 
> that to connect to the gateway, and when wlan0 is live, I use that to 
> connect to the gateway?  Do I need to set up a script to change the routing 
> table each time?  Or can the routing table be smart enough to use wlan0 
> when eth0 is down?

Use a script, or a useful program like laptop-net or guessnet. 

laptop-net can make decisions based on plugging in cables, DHCP
addresses, pinging external machines... all useful techniques.

-dsr-



More information about the Discuss mailing list