Solved

Redhat Fedora Core 2, Multiple Network Interfaces, Multiple Gateways

Posted on 2004-09-09
6
225 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
Comment Utility
Wow I said however a lot of times there!
0
 
LVL 6

Expert Comment

by:bloemkool1980
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (250)

CetusMOD
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now