Skip to main content
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

How to communicate between different networks?

I have two PCs, as depicted in the figure.

Because of practical constraints, I cannot change anything on PC2, i.e., I cannot change its IP address and gateway (blank).

On both PCs, the subnet mask is '''255.255.255.0'''.

On PC1, I can only configure the gateway IP address.

Ideally, I would like both PCs to "think" they were communicating in the same network range (no gateways needed as far as the PCs were concerned).

Would this be feasible?

If yes, what kind of functionalities those routers must implement?

enter image description here

Ideally I want to be able from PC1 to

ping 192.168.1.11

and get responses from 192.168.2.11, i.e., the router(s) would handle all the address translation.

Thank you.

Answer*

Cancel
4
  • Thank you. But, that would imply changing the net mask on PC2 as well, which I can't. I added an ping example in my post.
    Emanuel Oliveira
    –  Emanuel Oliveira
    2021-02-08 14:03:42 +00:00
    Commented Feb 8, 2021 at 14:03
  • Try changing only the routers network mask. This way, from PC1 you can ping 192.168.2.11 directly. Otherwise Router2 will need an Subnet1 IP, firewall and route rules.
    Eduardo Bissi
    –  Eduardo Bissi
    2021-02-08 14:14:27 +00:00
    Commented Feb 8, 2021 at 14:14
  • Thank you @Eduardo. But not being able to change the net mask on PC2, PC2 will "only see" requests from the 192.168.2.x range. I added the net masks to the post for clarification. The only thing that crossed my mind was "playing" with the routers and their configuration... some kind of address translation.
    Emanuel Oliveira
    –  Emanuel Oliveira
    2021-02-08 16:59:49 +00:00
    Commented Feb 8, 2021 at 16:59
  • Sorry, I missed the fact that the Router2 isn't the gateway for PC2 and also PC2 has no gateway.
    Eduardo Bissi
    –  Eduardo Bissi
    2021-02-08 17:30:11 +00:00
    Commented Feb 8, 2021 at 17:30

Morty Proxy This is a proxified and sanitized view of the page, visit original site.