Solved

Setting Up Dual Nic's on Windows XP

Posted on 2006-11-30
7
480 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SSL RA VPN 7 75
Need a useable Wake On LAN solution that can run on a schedule. 5 54
Route summarization 5 21
server plus 2 43
What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
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.
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now