Configure routing between same network address

networkingrouting

I'm trying to configure routing between two networks with the same address. They are connected through a router with 2 NICs (Linux machine).

Consider the figure above: How may I configure the routing so that a request from 192.168.1.10 on the right made to 192.168.1.100:4455 goes to 192.168.1.10:80 on the left?

enter image description here

Thank you all for your valuable input so far.

Maybe I can add another router to create a intermediate network like in the figure above. The question is if I can do that physical I can do it logical in one router?

enter image description here

Best Answer

In the first diagram you can connect each segment using proxy arp or bridging. In the second diagram you might be able to bridge the segments using GRE.

As everyone else emphatically states you should avoid this sort of thing if possible.

Related Topic