Redhat Fedora Core 2, Multiple Network Interfaces, Multiple Gateways

I am building up a server, which has to be accessible from the big wide world thorugh two internet connections. The server can have (does have currently) two network interfaces, both set identically, apart from the IP address, (which are x.x.x.230 and x.x.x.231). The two incomming internet connections go into individual routers, which are on the same network (x.x.x.253 and x.x.x.254). Normally a computer has one gateway, and we choose either the fast or slow conenction. As far as the incomming data is concerned, we have port redirection on both routers to point the data to the server in question. However, if there is only one gateway specified on the machine, and the request comes in the other gateway, then the reply goes out the specified gateway, and nothing works.
I have tried many things to make the machine work with two gateways, the working solution being that I modify the routing table to route to each individual router based on interface. However, when I boot the machine up, although both interfaces seem to be up (as far as ifconfig states), however there is always trouble adding the route for one conenction (network unreachable). Taking both interfaces down and up again allows the routing table to be correctly modified, however this does not work when the commands are put in rc.local.
What is the issue here? Is there a better solution?

Seamus Allan
Who is Participating?
CetusMODConnect With a Mentor Commented:
PAQed with points refunded (250)

Community Support Moderator
quantumMooseAuthor Commented:
Wow I said however a lot of times there!
What are you trying to achieve with having 2 cards in the same network ?
On the routers you should have something like VRRP in cisco it is called HSRP. And you should let the router decide which connection it should take.
If you use this your server only has one ip address as default gateway.
2 gateways means you have to play with the metric and this is always headache.
quantumMooseAuthor Commented:
With 2 gateways, you can use routing rules, (ip route commands with src in them) to route stuff out the gateway it came in. As I have two routers in the network, (these are the connection gateways), do I have to configure VRRP on both of them? I do not have access to my routers at the moment (I am not at work for a few days), I can't look into this immediately, I will look into it though.


quantumMooseAuthor Commented:
I was using 2 cards to help identify where the incoming traffic came from, ie. one router pointed to one card, the other router to the other card. Maybe this isn't the best, but it worked (Albeit well after boot, after taking the cards down and up again).
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.