if you have dhcp setup as the protocol for each interface, and the isp accepts any mac address, and ifup, and ifdown are setup to work with your isp.
two files, there's a lot of ways to do this. but what the heck
start one of them from rc.local ( the one that's up at boot )
/usr/bin/ifupeth0 &
-----------------------------------------------------------
#!/bin/sh
# /usr/bin/ifupeth0
if ! ping -i 30 yourgateway.com; then
ifdown eth0
ifup eth1
sleep 30
fi
/usr/bin/ifupeth1 &
----------------------------------------------------------
#!/bin/sh
# /usr/bin/ifupeth1
if ! ping -i 30 yourgate.com; then
ifdown eth1
ifup eth0
sleep 30
fi
/usr/bin/ifupeth0 &
-----------------------------------------------------------
99.99999999 percent of the time I bet the problem will not be your card. I have never seen one go out.
Last edited by DavidPhillips; 08-18-2002 at 12:10 AM.
|