Setting Up Dual Nic's on Windows XP

Posted on 2006-11-30
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?

Question by:tdavis1198
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

Accepted Solution

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.

Expert Comment

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:

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 (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

Expert Comment

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.
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.


Expert Comment

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.

Expert Comment

ID: 18048938
Yes but you are controlling the routes with your routing table and NOT the second gateway...

Expert Comment

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

Expert Comment

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.

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Telepresence on backup 3 55
Internet options/Settings 1 65
Basic Client Hyper-V test lab connectivity issue. 7 71
Palo Alto site-to-site vpn monitoring 5 48
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Internet Business Fax to Email Made Easy - With  eFax Corporate (, 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…
Here's a very brief overview of the methods PRTG Network Monitor ( 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…

763 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