Hello,
I am trying to setup a router with a fail over mechanism.
Here is the configuration.
Router
ClearOS 6.3
eth0 - Connected to ISP1 (high speed unlimited)
eth1 - connected to ISP2 (slower speed limited)
eth2 - connected to the LAN (IP Address 192.168.55.1/24)
In clearOS I have configured multiwan so that eth0 has a weight of 4 and eth1 of 1. I have not configured the DHCP server on the router machine. The idea is to use the secondary connection (eth1) if the primary one(eth0) fails.
I have hardcoded the nameservers (in resolv.conf) to 8.8.8.8 and 8.8.4.4 and prevented overwrites of resolv.conf as the switch over does not seem to handle this properly.
Workstation
On the work station side the configuration is as follows:
OS=>Fedora16
interface=>em1(static)
ipaddress=>192.168.55.101
Subnetmask=>255.255.255.0
Default Route(Gateway)=>192.168.55.1
DNS servers=>192.168.55.1
resolv.conf entry
nameserver 192.168.55.1
Note: ClearOS handles DNS caching (I hope)
Operation
When everything is connected my
workstation is connecting to the internet, it could resolve names and all.
Here are the results of the some commands from the
workstation:
ip route list
Code:
default via 192.168.55.1 dev em1 proto static
192.168.55.0/24 dev em1 proto kernel scope link src 192.168.55.101 metric 1
Here is the out for the above commands from the
router at the same time
ip route list
Code:
default via <eth0 ip> dev eth0 proto static
192.168.55.0/24 dev eth2 proto kernel scope link src 192.168.55.1
<eth1 network>/24 dev eth1 proto kernel scope link src <eth1 IP>
<eth0 network>/24 dev eth0 proto kernel scope link src <eth0 IP>
When I remove connection from eth0 on the router, it takes a bit for the routes on the router to get updated; probably after about a minute the routes on the router get updated. And the result of
ip route list on the router is as follows:
Code:
default via <eth1 ip> dev eth1 proto static
192.168.55.0/24 dev eth2 proto kernel scope link src 192.168.55.1
<eth1 network>/24 dev eth1 proto kernel scope link src <eth1 IP>
At the this point the router is able to connect to the internet (obviously through the second connection), able to resolve names and all.
But the workstation neither could resolve names nor could reach the internet through ip addresses. At the same time the workstation could connect to the router. The route ie. the result of
ip route list is unchanged on the workstation. I can able to ssh into the router from the workstation. I know I am nearly there; but don't know how to proceed.
Can anybody gues what it is and could probably help?
Thanks