Click to See Complete Forum and Search --> : [RESOLVED] one computer two networks


jdlenke
November 12th, 2005, 08:58 AM
ok here's the deal. a place has a wireless network for file and print sharing. the printer is connected to a main computer. peer to peer style given an ip address by a wireless router of 192.168.2.x

office also has a cable internet access and the router for that give an ip of 192.168.1.x

this office contains two different doctors practices and the internet connection is paid for by the other doctor lets say. so i can't mess with it. so the main computer has two nics. one for the internet and remote desktop to the doctor i'm working with 's other office and the wireless network for file and print sharing. remember there are two different doctors within this office so i can't just use the one connection for fear of sharing the wrong files etc...

history: "my" doctor at one time only had the wireless and it worked out fine. now they have internet access to the office and here is where the trouble starts.

if i have both nics enabled i can do the wireless for file and printing. but can't access the internet. if i disable nic for the wireless then i can access the internet. now with both nics enabled i can remote into the computer over the internet but it seems i just can go out to the net. How can i make both networks live together in harmony.

would the answer be in the subnet mask?

Tuttle
November 12th, 2005, 09:09 AM
It's not the subnet mask; that should already be 255.255.255.0 on both connections.

If I understand you correctly, what you want to have happen is for your Internet traffic to go out the old way (the cable modem connection on 192.168.1.*), but you still want wireless access to the 192.168.2.* network. There are two easy ways to do this:

First option is to manually assign an IP address to the 192.168.2.* side. Set an IP address and subnet mask, but do not set a default gateway. With the only gateway on the 192.168.1.* side, that's where your non-local traffic will go.

The other option is to set the metrics on your two connections so that the 192.168.1.* side is preferred for non-local traffic. To do that, right-click | Properties on the connection, double-click on Internet Protocol (TCP/IP) and then click Advanced. Uncheck the Automatic Metric box and enter a number. You'll need to do that for both connections, and make sure the 192.168.1.* side's metric is smaller than the 192.168.2.* side's one -- lower number takes priority. 10 and 20 are sensible values to use.

jdlenke
November 12th, 2005, 09:17 AM
ok anything i try will have to be done on monday so if there are other options please post. i will try which ever works best.

jdlenke
November 12th, 2005, 04:54 PM
tuttle

for example on my linksys router here at home it has an option for gateway or router in the dell router i should look for something like that and choose router? plus set it as static? Net working is not my strong suit.

Tuttle
November 12th, 2005, 07:51 PM
No, this is all done on your PC with the two network cards.

Each network's router is quite happy in its own world, or else you would have posted that a bunch of the other machines were having issues too. :) Your problem here is just related to helping your PC decide which network to send traffic on.

Either of the options I posted will get you this:
192.168.1.* - Left (for lack of a better term)
192.168.2.* - Right
Anything else - Left

If you want to force the 'anything else' bit out the 192.168.2.* side then do the same stuff but on the opposite connections instead.

jdlenke
November 14th, 2005, 08:19 AM
ok the metric thing worked. thank you. this has been resolved.