Redhat Fedora Core 2, Multiple Network Interfaces, Multiple Gateways
Posted on 2004-09-09
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?