Solved

Setting Up Dual Nic's on Windows XP

Posted on 2006-11-30
7
508 Views
Last Modified: 2012-05-05
I would like to setup my dual nics as follows:

Nic 1: connect to internet via router (DHCP or static)
Nic 2: connect to local switch which is connected to another router and then to the internet

I do have two internet connections and I want the XP pc to access the internet via Nic1 and I would like Nic 2 to be used really only for applications like remote desktop and file sharing with other PC's that are also connected to the local switch.

Can this be done?

Tony
0
Comment
Question by:tdavis1198
[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
  • 4
  • 3
7 Comments
 
LVL 4

Accepted Solution

by:
Trilotech earned 75 total points
ID: 18048439
Just set up your gateway on NIC 1 and leave the gateway for NIC 2 empty. All local traffice to NIC 2 subnet will go there automatically. Any other traffice will go out your gateway address of NIC 1.
0
 
LVL 3

Expert Comment

by:KVR_Solutions
ID: 18048809
Trilotech is on the right track, but I'm not convinced that his response will solve your problem. You'll want to have both gateways entered on those NICs, but apply persistant routes for the specific connections you desire.

See this link: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/route.mspx?mfr=true

Remember that you'll need to use the -P switch to make it persistant, or else you'll loose the routes you've added at the next system reboot.

Follow the standard procedures for routing.. making sure to have all traffic go out the gateway for NIC 1 by default. I think the way to do this is to add a route for 0.0.0.0 (which typically means all traffic) placed at the bottom (or top depending on that table) of the routing table. The packet that is addressed to a machine on the local subnet will be checked against the routing table and then go out NIC 2.

Ira @ KVR
0
 
LVL 4

Expert Comment

by:Trilotech
ID: 18048896
You only want to go to the internet via NIC 1 correct? NIC 2 is only for the local LAN. So only the gateway on that NIC needs to be set.

You should only ever have one default gateway... This means it is the last route when no other is available.
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 3

Expert Comment

by:KVR_Solutions
ID: 18048914
You may be correct, however, I have a machine at my house working just like the setup that I described. I am aware of the warning that Windows gives you upon hitting apply with a second gateway, but if you control the routes with a routing table it works as expected.
0
 
LVL 4

Expert Comment

by:Trilotech
ID: 18048938
Yes but you are controlling the routes with your routing table and NOT the second gateway...
0
 
LVL 3

Expert Comment

by:KVR_Solutions
ID: 18048952
Are you convinced that all of the traffic addressed to the local subnet will use the second NIC without a routing table?
0
 
LVL 4

Expert Comment

by:Trilotech
ID: 18050007
Of course it will. That is why it is called local traffic. Only traffic outside your subnet is routed, thus requiring a route.

Any traffic that is on the same subnet as your NIC will go out that NIC and does not get routed. If you are on a LAN only with local computers and no internet, you would not even have a default gateway. All communication would be local.

If an IP packet is addressed to an address NOT in your subnet your computer looks to its routing table. It starts at the top, where the most specific settings are, looking for a route. AS SOON AS IT FINDS ONE it uses it and does not even continue to parse the routing table. This is why it is pointless to have a second default gateway. Whichever one is first on the list will ALWAYS be used if no other routes have been found.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

732 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