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
Solved

Setting Up Dual Nic's on Windows XP

Posted on 2006-11-30
7
500 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
is there an export feature for easy reading in task scheduler 9 108
Cisco switch suggestion 5 65
DNS Server 7 59
Connectivity issues after power outage 5 33
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

856 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