LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2006, 05:27 PM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
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...??
 
Old 02-11-2006, 05:43 PM   #2
myinnershadow1
LQ Newbie
 
Registered: Feb 2006
Location: pennsylvina,us
Distribution: fedora core 3
Posts: 4

Rep: Reputation: 0
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)
 
Old 02-11-2006, 08:08 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 02-12-2006, 05:05 AM   #4
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check internet connection in .bashrc mvo Linux - Newbie 2 11-26-2005 06:32 PM
connection speed's, what do I need to check ? bigjohn Linux - Networking 3 12-12-2003 02:04 AM
Check connection speed chii-chan Linux - Newbie 1 09-24-2003 12:29 PM
How to check kernel (RH9) is support for Internet connection sharing?? TYLin Linux - Hardware 0 06-18-2003 02:39 AM
How to Check the IP configuration of your Ethernet Connection scottpioso Linux - Networking 3 03-10-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration