Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure two NIC cards running Windows XP 1

Status
Not open for further replies.

kwestor

MIS
Apr 14, 2003
6
PH
Hi to all Network Experts!

My problem is that i could not figure out how to configure my PC with an Internet connection and at the same time LAN connection.
--------
I have 2 NIC cards:
First card is 3Com Ethernet Card. This card is used for my LAN Connection.

Second card is a Built-in NIC that i want to use for internet connection.

--------
IP for the 2 NIC Cards:
First Card (LAN Connection): 172.16.3.100 subnet: 255.255.255.0 gateway: 172.16.3.245

Second Card (for Internet): 192.168.1.40 subnet: 255.255.255.0 gateway: 192.168.1.1

--------
The internet modem/router is connected to a 3com switch where my second card is connected.
--------

I really don't know how to go about this problem. i have researched on this but still havn't found any answer.

--------
Currently, i have no problem connecting to my LAN but i can't surf the net. I can only surf the internet when i disable the First LAN Card (LAN).

Can anyone help me? please...
 
What are you trying to accomplish by using 2 nics?
 
dberg35

currently i am connected to our LAN (first NIC)
then i want to connect to the internet using the second NIC.

the second NIC is connected to a switch separate from the switch our LAN is connected to.

i just want to connect to the internet using a separate NIC because we have strict rules regarding using the internet. we cannot connect the switch used for our LAN to the internet because of our strict policy.

can you help me with this?
thanks in advance.
 
First, by connecting your computer to both the internal network and the Internet, you have effectively eliminated any safeguard that the company put in place. Now your machine IS the gateway between your internal LAN and the Internet. Fortunately for your company, your computer is incapable of routing to the Internet, so they are temporarily safe.

That said, one of two things is probably happening. Either you have no default route, since each of the networks assumed that it should be the default route, or the default route is to your LAN gateway, which can't access any other networks.

You need to open a cmd window and type 'route print' and look for a line that is the equivalent of:

Code:
0.0.0.0   0.0.0.0   192.168.1.1   192.168.1.40   20

Basically, this says route any IP subnet that is not specifically listed to 192.168.1.1 through the 192.168.1.40 interface. The last number (20 in this case) is a metric that tells the system the priority order for the route. Smaller numbers mean a higher priority.

You can add a static route from the command line, and make it persistent by using the /p option. That way it will survive reboots.


pansophic
 
pansophic,

"You can add a static route from the command line, and make it persistent by using the /p option. That way it will survive reboots."

how am i going to do this? is this your solution? can you give me a concrete example?

thanks in advance.
 
Code:
route -p add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1

But I wouldn't add a persistent route until I determined that the routing actually worked. Just don't add the -p at first and you can test the routing.

And double check with your security/network people. This would be a MAJOR violation of security practices in almost any shop. The average lifespan of an unprotected Windows box on the Internet is less than 20 minutes.


pansophic
 
Remove the gateway address for the LAN Nic and you should be all set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top