?
Solved

Need two network XP Pro Dual NICs to two seperate Networks

Posted on 2004-10-15
10
Medium Priority
?
225 Views
Last Modified: 2010-04-10
I have an XP Pro system with Dual NICs  connected to separate networks each with different IP schemes.  One is  a 192.168.X.X and the other is 2.1.X.X  I need computers from both networks to talk to the system however I need all outbound traffic to route to the 192.168.X.X network first before trying to go out the 2.1.X.X network.  Is there a way to make this happen?
0
Comment
Question by:infutech
[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
  • 3
  • 3
  • 3
  • +1
10 Comments
 
LVL 9

Expert Comment

by:TannerMan
ID: 12323693
This can be accomplished by manipulating your route table. Dangerous, if not familiar with route tables. Open up your XP Control Panel and then the Network Connections applet. In the opening window click the  advanced option on the horizontal menu, then choose Advanced Options. In the connections section move your NIC utilizing 192.168.x.x to the top of the list if not thre.

From an command line type "route print" and see your table. You should see that the defaullt 0.0.0.0 route is set to use 192.168.x.x STOP right now and make a screen shot of your route table in case you have to revert back and don't remember any static routes already there.

Then type the following command and excute. Make sure my examples are changed to valid IP's and Network MAsk. If not familiar with the syntax, make sure you type with spaces just like listed below.

route add 0.0.0.0 mask 255.255.0.0 2.1.x.x metric 2 -p

What has been accomplished is the first path data will travel, if a specific path is not known, is the 192.168.x.x NIC. Then, if that destination can not be found there, it will then send the data to the secondary default path of 2.1.x.x. Just to explain, the "0.0.0.0" represents any address that is no known by this system, the "metirc -2" makes it the secondar path of choice and the "-p" makes it persistent so the route will stay after you reboot.

I hope this helps.
0
 
LVL 9

Accepted Solution

by:
TannerMan earned 1000 total points
ID: 12323980
I know the spacing may be difficult to view if your not familiar with route table edits. The below example has an UNDERSCORE where each space should be in the command.

route_add_0.0.0.0_mask_255.255.0.0_2.1.x.x_metric_2_-p

Hope that helps
0
 

Author Comment

by:infutech
ID: 12324068
Should I remove the 2.1.X.X defaualt gateway? I saw that in another post
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 79

Expert Comment

by:lrmoore
ID: 12324500
TannerMan has the right idea, but you may have to adjust the metric, especially if you let XP set automatic metrics.
Using "route print" look at the metrics that you already have assigned with the two defaults. Using the syntax from TannerMan, put the "higher cost" route entry in with a higher metric than the one you want as a primary default.
0
 
LVL 15

Expert Comment

by:Frabble
ID: 12325443
If you're going to change the default route, you also need a zero mask, i.e.
route add 0.0.0.0 mask 0.0.0.0 <next hop>

If the 2.1.X.X gateway provides a route to other networks, then leave it in.

You should be able to modify the metric values without having to enter static routes. In advanced TCP/IP properties of the LAN connection, just untick Automatic metric and enter the value in the box provided.
0
 
LVL 9

Expert Comment

by:TannerMan
ID: 12325736
Frabble is dead on right. I don't knwo what I was thinking with the 16 bit mask on a default entry.....brain freeze.
0
 

Author Comment

by:infutech
ID: 12328217
Please forgive me, however I am a litte confused. I should now delete what tannerman has suggested and add the additional 0.0.0.0 route?
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 12328300
Yes, you can delete what you entered and add the proper gateway entry with all zeros...
0
 

Author Comment

by:infutech
ID: 12339976
One more time for clarification...
I need to: route add 0.0.0.0 mask 0.0.0.0 2.1.X.X metric 2 -p
Is that correct?  This way the traffic would attempt the 192.168.0.X route first?
0
 
LVL 79

Assisted Solution

by:lrmoore
lrmoore earned 1000 total points
ID: 12340282
That depends. Look at the result of "route print" first.
What is the current metric for your default gateway? XP Defaults mine to '10'
Just make sure that the new route to 2.x.x.x has a higher metric than the existing default '2' might not be high enough.


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

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

770 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