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.