How can we establish communication between two networks with different IPs but same Subnets?

Network Connection 1: (Factory Network for machinery)
I.P = 192.168.19.X
S.N =
G.W =

Network Connection 2: (Connected to Internet)
I.P = 10.32.24.X
S.N =
G.W =

So how does a user access devices in the Connection 1 network from Connection 2 network?

Any help appreciated.

  • 1
    Why do you have gateway on connection 2? it should be ( Plus use need gateway on Connection - 1
    – Satish
    May 20, 2019 at 20:24
  • subnet says 'how many computers are allowed to use in your IP range'. You can not talk only about subnet without IP address
    – infra
    May 23, 2019 at 10:05

2 Answers 2


Connection between two networks with different IPs and identical subnets?

That does not match the information in your question. Your two networks have completely separate subnets, but they use the same IP (IPv4).

Routers route packets between networks.

One problem you have is that the devices in Network 1 need to have a gateway configured, otherwise they cannot communicate outside the network. The gateway is a router and the host on the network that knows how to reach other networks. A host will determine if the destination of a packet is on a different network, and it will frame the packet with the LAN address of the gateway for a packet destined to a different network.

It looks like you just need to connect Network 1 to your router and configure that router interface to be in the same network, then configure the hosts on that network to use the address of the router interface as their gateway. The router should automatically route packets between the networks.

  • Hi Ron, Thanks for your response. So if I add a router to the Network 1 say for example with I.P = and S.N = and then assign the devices on network 1 to use G.W = Will that ensure users to access Network 1 from network 2?
    – nar0909
    May 20, 2019 at 0:14
  • Either you use the existing router for both networks, or you will need to do more. If you add a separate router, you will somehow need to connect it to the existing router and create a new network for the link between and use a routing protocol or static routes, or you could also connect the new router to Network 2, but then the hosts on Network 2 would need to be configured with a specific static route to Network 1 through the new router. The easiest thing to do is connect both networks to the existing router because it will inherently know about both networks.
    – Ron Maupin
    May 20, 2019 at 2:06

In the network 1 must be configure a default gateway that have connection to internet and this gateway also must know the network 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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