Solved

Routing Issue

Posted on 2004-04-28
7
251 Views
Last Modified: 2010-04-11
My question is this:

Is it possible to have a server with two network cards on the same network but with different gateways and tell each card to respond to requests received on that card using the default gateway of that card rather than the other card.

Example:

NIC1 = 192.168.1.1
Gateway = 192.168.1.253

NIC2 = 192.168.1.2
Gateway = 192.168.252

I want to have each network card respond using its own gateway so that the response comes from the same WAN IP that the request was made on.   Can anyone tell me if this is possible.  Please ask for any additional info as I am sure that this may not be clear the way I have explained it.

Thanks in advance for the help.
0
Comment
Question by:jsmall562
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 11

Expert Comment

by:YohanShminge
ID: 10943084
It is possible, you just need to configure the cards to use their specific gateways.

It will vary between operating systems, but on Windows XP/2000 just open Network Connections, right-click one connection or the other, then select properties.  Next, select TCP/IP and click Properties.  Now, select "Use the following IP address" and enter the IP address, subnet mask, and the appropriate gateway for each card.
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 10943352
Generally, the answer is no. Even though it appears that you can set dual gateways, it won't work.

If you try it, from a DOS prompt, type "route print" and you will see a metric after the default gateway. Packets will always take the route with the lowest metric.
0
 
LVL 11

Expert Comment

by:YohanShminge
ID: 10943390
If the server is establishing the connections, then yes.  However, won't it respond to a request received through network card A on network card A?  It doubt a connection could be established on one card, then transferred to another.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 79

Expert Comment

by:lrmoore
ID: 10943683
Only if the request is from the local subnet. Anything outside the local subnet goes to the one default gateway. The connections are not established on the card, but by the application.
That is part of the problem. Packet comes in addressed to NICA with source IP of a.b.c.d the only way the "system" can respond to that source is via the one default gateway.
0
 
LVL 3

Expert Comment

by:Tele_tech
ID: 10943821
What is the purpose.... it is possible to set up this a router gateway.. but there are a few different ways to do it...  knowing why would help narrow the how...
0
 
LVL 5

Accepted Solution

by:
Anthony_E earned 200 total points
ID: 10943903
just add a new route for each of the nic's for eg,


route -p (for persistant) ADD <destination subnet> MASK <mask> <Gateway> IF <interface no.>

if -p wont work in your version of windows just make it in a bat file and load it each time u reboot

hope this can help u
Anthony
0
 
LVL 11

Expert Comment

by:YohanShminge
ID: 10944035
lrmoore,

I must have been thinking of something else.  It just makes sense to me that the card would respond via its default gateway, which is different for each of the cards.  Sorry if I confused anyone!
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Let’s list some of the technologies that enable smooth teleworking. 
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

740 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