LinuxQuestions.org
Visit Jeremy's Blog.
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 05-10-2006, 05:35 AM   #1
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Rep: Reputation: 15
Exclamation Isp failover for a dummies


To start out it is probely going to be something were i am going to be like "doup". Ineed to make a isp fail over from T1 to DSL but befor i give it a big job i am testing it at home. I think this is the problem but i dont have a different way but i took my dsl line goes to a router then goes to my computer. there i have a swich to make 2 lines for the different "internet lines" that is probely messing it up. a have 3 internet ports and got my howto from http://enterprise.linux.com/enterpri...id=100&tid=119. then i have the two lines going into eth0 and 1 with a 192.168.2.6 on 0 and 192.168.2.7 address on the other (also could be a problem). then my eth2 goes dirrectly to my pc (third problem)(i dont know if i need a router but i dont want to buy one to fing out i dont need it). the ip adress is 10.10.6.1 and i can connect to it in my computer but i dont get any receved packets but i can ping it. also on the linux box i dont get internnet connection (i cant get google.com ect). Also the firewall and linux security ard dissabled. can some one tell me what is wrong.
 
Old 05-10-2006, 10:24 PM   #2
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
ok i have my program to be able to switch it over when it goes out... It is very basic but i will add to it later when i can. Now i still cant figure out how to get it to have an output i have 3 adapters 2 are on lan and the third one to my pc but i cant get it. i was hoping someone could add to the program and get it capable of using etc2 and the output...

#!/bin/bash

PING="192.168.0.1"



PAUSE=2
PAUSE1=5

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin

MISSED=0



while true; do

if ! ping -c 4 -w 4 $PING; then

((MISSED++))

else

if [ $MISSED -gt 2 ]; then

ifconfig eth1 192.168.2.105 netmask 255.255.255.0 up
MISSED=0
$PAUSE1

fi

MISSED=0
fi;

if [ $MISSED -eq 2 ]; then

ifconfig eth1 192.168.2.105 netmask 255.255.255.0 up
ifconfig eth0 down
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
route add default gw 192.168.2.1
sleep $PAUSE1

fi

sleep $PAUSE;

done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IP failover mechanism vilaor Linux - Networking 1 02-02-2006 10:51 AM
failover routing firsttux Linux - Networking 1 01-24-2006 04:21 PM
SUSE Linux 9.3 for Dummies (For Dummies S.) samuelmp SUSE / openSUSE 11 08-01-2005 02:42 PM
Changing ISP, apt-get can not see new ISP proxy linx win Debian 0 01-05-2005 04:41 AM
Failover LAN gkrishna Linux - Networking 1 06-25-2003 02:23 PM

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

All times are GMT -5. The time now is 06:30 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