LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-01-2006, 04:18 PM   #1
timjowers
LQ Newbie
 
Registered: Apr 2006
Posts: 27

Rep: Reputation: 15
multi-home on two ISP networks


Hi,

Trying a test config where I have DSL and Cable both feeding into my server. The server runs Apache web server. The problem seems to be the Linux routing tables all point to 0.0.0.0 rather than the real network for them. I tried "route add" and have started to look at iproute2. The iproute2 page mentions a problem which may be it... if Linux is transmitting over a network 1 (the cable network say) but the request came through network 2 (the dsl network) then the cable network will drop it.
Basically, looking for advice on multihoming on a home/SBA network for fault tolerance. My TWX cable modem hangs about once every two weeks. I read about setting up OSPF and BGP but this is simply a home network.
Here's what works. Apache is set to "Listen 80" meaning it listed on both NICs. Requests from either LAN are served. Good. Requests from the big net to the first LAN are served. Good. Requests from the big net to the second LAN are not served.
I can disable NIC1 and then requests from the LAN to the second NIC work, so I know that network is setup to work.
Here is some more detail:
1. DSL network. 192.168.2.0
2. Cable network: 192.168.0.0
Hosts /etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.0.13 www.serviza.com
Apache config: /etc/httpd/conf/httpd.conf
Listen 80
#Listen 192.168.2.102:80 # Thought I could toggle the NIC with this but
fails to respond.
ServerName 192.168.0.13:80
#ServerName serviza.com:80 # Argh! Virtual Hosts fails with this -
maybe due to /etc/hosts?
Route route -n:
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
# This route does not look right to me. I thought I'd see something like:
> Destination Gateway Genmask Flags Metric Ref
Use Iface
> 192.168.2.0 192.168.2.1 255.255.255.0 U 0
0 0 eth0
> 192.168.0.0 192.168.0.1 255.255.255.0 U 0
0 0 eth1
# Does not that make more sense? I tried setting these in
system-config-network but does not seem to take as the changes do not
show in route -n.

Thanks,
TimJowers
http://www.serviza.com/ : Serviza Monster Linux Computers and Training.
 
Old 12-02-2006, 10:28 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
www.serviza.com must be having a single real public ip & that we can get via nslookup or ping. But when you have two different ISP, how can you have your single real-public IP mapped at both interfaces, NO. So only one of your cable/dsl would be having your real public internet ip & that only would be forwarding it to your box.

So further from here what is your problem now ???
 
  


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
(Dail-up connection) - adding multi phone numbers per ISP medya Linux - Newbie 2 10-22-2005 11:57 AM
home isp speed linuxhippy Slackware 2 09-01-2005 12:37 PM
advice on home networks drisay Slackware 4 10-21-2004 11:40 AM
Firewalls for home networks, is separate justified? setiDude Linux - Security 12 10-18-2004 08:55 PM
Multi DSL in small ISP iggyoz Linux - Networking 0 05-06-2004 05:59 PM


All times are GMT -5. The time now is 12:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration