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 


***Archives:
http://groups.yahoo.com/group/linuxvadapav/messages

***Group Usage Guidelines (Please Read):
http://groups.yahoo.com/group/linuxvadapav/files/mailing_rules 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/linuxvadapav/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to