same ip adresses and routing

I have 3 machines with the same ip. I can’t change the IP addresses. I want connect these machines to the network and access them over dnat.
The best scenario for me is:
one router with external binded 3 IPs (192.168.180.10, .11, .12), three robot controllers with the same IP address (local) connected to three ports on the router. Trying to connect 192.168.180.10 I’m connect to 192.168.1.1 on port1, etc.

Of course it’s possible to do it with three routers but is it possible to do it on one router?

No

The IP to MAC address won’t work. You will only be able to talk to one at a time, if even.

I’m think it’s possible. you just need three routing tables:

/ip route add gateway=ether1 routing-mark=device1 disabled=no
/ip route add gateway=ether2 routing-mark=device2 disabled=no
/ip route add gateway=ether3 routing-mark=device3 disabled=no

then mark routing with corresponding mark (in mangle prerouting chain) and dst-nat

Device 1, 2 and 3 has the same IP… How is ARP going to work in order to map the IP to the correct Interface (MAC Address)? :confused:

what’s wrong? you can easily add the same IP/MAC pair to different interfaces =)

Oh :open_mouth: Hmm, fair enough… My bad :laughing: