Solved

Redhat Fedora Core 2, Multiple Network Interfaces, Multiple Gateways

Posted on 2004-09-09
6
234 Views
Last Modified: 2008-02-01
Hi.
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?

Thanks
Seamus Allan
0
Comment
Question by:quantumMoose
  • 3
6 Comments
 

Author Comment

by:quantumMoose
ID: 12014421
Wow I said however a lot of times there!
0
 
LVL 6

Expert Comment

by:bloemkool1980
ID: 12014594
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.
0
 

Author Comment

by:quantumMoose
ID: 12022419
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.

Thanks

Seamus
0
 

Author Comment

by:quantumMoose
ID: 12022460
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).
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 16238478
PAQed with points refunded (250)

CetusMOD
Community Support Moderator
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question