Problem with 2 NICs in one pc

Associate
Joined
17 Feb 2003
Posts
170
Location
Tamworth
Hi all,

Im setting up a VPN between computer A and B (for uni project). Computer B has two network cards (1 and 2). The VPN works fine between A and B(1) but im not sure how to tell windows (2K), that I want it to use card 2 for the net. If I disable card 1 (cutting out the VPN) then IE find the net fine but if then re-enable card 1 the VPN cannot establish (a ping results in no response). To cut to the chase, does anyone know how I can explicity tell Windows to use network card 2 on computer B to access the internet ?

Thanks in adv guys

Greg

BTW - Card 2 in computer B connects to a router with shared BB access
 
Last edited:
You'll need to play with your routing table a bit.

Assuming that NIC1 has a gateway of 192.168.0.1, NIC2 has a gateway of 192.168.1.1, and the VPN host you're connecting to is 1.2.3.4, then entering the following commands into a command prompt should help:

route delete 0.0.0.0 mask 0.0.0.0 192.168.0.1 (stops NIC1 being the default route to the internet)
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 (makes NIC2 be the default route to the internet)
route add 1.2.3.4 mask 255.255.255.255 192.168.0.1 (makes the PC use NIC1 as the gateway to the VPN host)
 
Can you mess about with the routing table on a conventional router? I'm under the impression you need som top dog Cisco one with memory and RAM to handle the commands and instructions and also to save them.
 
Burbleflop thats great thanks ... worked a treat

BTW The VNC Host is comp B which comp A connects to .. which leads me to my next question lol

Do you know how to allow comp A access to the internet via B over the VNC connection ?

Thanks again

Greg
 
I had to reread your post a few times, then realised you meant VPN connection, not VNC connection :)

You'd probably need to run a proxy server on Comp A then set Comp B to use the proxy server running on Comp A.
 
Back
Top Bottom