I have two networks:

Network A - 192.168.1.x with a router/gateway and cable modem Network B - 192.168.1.x with no gateway or internet acces

Both subnets are

I have a computer with two network adapters - one connected to each of the networks (XP SP2). This computer runs an application that needs to use only the internet connection from network A and has to communicate with computers on network B.

Internet access seems to be unavailable when both adapters have a 192.168.1.x IP. I added a second router between the PC and network A's switch with an internal IP of 10.0.0.x and an external IP of 192.168.1.x.

This seems to be working Ok, but persistent connections sometimes drop. Is this an acceptable way to do this? Any way to eliminate the extra router?

  • Renumber one of the two networks. – David Schwartz Sep 11 '17 at 19:40

You only have one network, which is with netmask, this is classic Class C network (classfull), I think in your case may be happening ip duplicate, check the Ip's of your devices. Now would be good if you actually create another network, eg with mask

  • More info: en.wikipedia.org/wiki/IP_address – Ielton Dec 27 '11 at 23:35
  • 3
    Umm, the distinction between classful and classless is irrelevant in a private network. But even if it wasn't: The distinction between classful and classless is about how (global) addresses are allocated, and not the sizes. While a newly allocated /24 network has the same size as a legacy class C network, that doesn't make it classful. – phihag Dec 27 '11 at 23:37
  • I mentioned in the text just as informative and to attract readers to learn about the term, and taking the opportunity of your comment I leave two links for more information: en.wikipedia.org/wiki/Classful_network en.wikipedia.org/wiki/Classless_Inter-Domain_Routing – Ielton Dec 27 '11 at 23:51

Unfortunately, there isn't an easy way around this. If you have one host on each network that has the same IP as the other, how does your computer know which one it is to talk to?

Apart from changing the address range you could set up your router to do a 1 to 1 NAT.

The only other real option might be to use subnetting


You cannot - in principle - have two devices with the same IPv4 address reachable from a single machine unless you perform some kind of address translation. It may work from time to time, but will regularily break.

I strongly suggest that you simply move either network A or B to

If you must use the same IP ranges on both machines, adjust the routing table as follows, assuming the internet router on network A has the IPv4 address device A
192.168.1.x/24 device B      gw

You will not be able to communicate with on network B. However, while this setup is possible, it will be error-prone in the long term, and I see absolutely no reason why you shouldn't just pick a different address range for either network.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.