Hi friends,
i need a help from u all,I have two internet
connetion to my linux server. I want to implement it
as follows,
when first internet connetion get down ,then my
second net connetion should come up immediatly and
similarly when my first internet connetion is come up
again then my gateway should switch to first gatway.
here i want to use user my first internet
connetion ( gateway 192.168.0.1) as a primary net .
The simple script for this which i written is as
follows
wget -t 1 --timeout=4 --bind-address 192.168.0.80
http://< some ip >
if
[ -s /root/index.html ]
then
echo " Net is working"
route del default
route add default gw 192.168.0.1
else
echo " Net is down but it is up with anothe gw "
route del default
route add default gw 192.168.0.50
fi
rm -f /root/index.html
here 192.168.0.80 is my server ip.My problem is
by this script, when net started through primary
gatway then i am not able to switch to my primary
gateway ( 192.168.0.1).
hwo to do this, any suggession,tips for this ?
Thanks in advance
thanks & regards
jayesh :-)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help