LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   check if the internet connection is available. (https://www.linuxquestions.org/questions/linux-networking-3/check-if-the-internet-connection-is-available-414318/)

ALInux 02-11-2006 05:27 PM

check if the internet connection is available.
 
Hi..Iam creating a failover script to switch between to connections.....Iam almost done..the only prob is that when I switch to the backup connection ...how can I know that the original "always on" connection is up again "the original connection will always try to reconnect"....I cant use ping -I "interface of original con"...because my provider does not allow pings to external sites...

So the backup connection is running on eth2
The original connection is running on eth1 ..how can I make sure that it is up again...??

myinnershadow1 02-11-2006 05:43 PM

I'm not any help but when u get this this please tell me how you did it. i have no idea how to get eth1 to become active when eth0 fails (or come back). i want this so i dont have to keep pulling the cord on my router and reconfigutring the wan settings everythime the link fails. i just want my linux box to handle this. then go to my switch. and the rest of my network (plus im going to work on a proxy when i figure this out)

win32sux 02-11-2006 08:08 PM

maybe you could set it to try and download some files from a few different websites... if it succeeds in downloading from one of them then the connection is back online...

BTW, it would be great if you could share you script with us... we might even be able to give you some constructive feedback and stuff...

myinnershadow1 has had a similar thread going over here:

http://www.linuxquestions.org/questi...d.php?t=413664

i'm sure he/she would be very greatful if you shared your script...

ALInux 02-12-2006 05:05 AM

Edit...the idea of trying to download a file from a website is an appealing one.....I might put a dummy file on my site and try to download it. However ...the problem is that I must be able to choose which interface to use for the download...this could have been done by ping..if my dumbass ISP provider did not block external ping requests...Anyhow, this is not a hobby activity this is for my job..so I have to get it done one way or the other....And when I finish it I will post the script..


All times are GMT -5. The time now is 05:48 AM.