Redirecting packets to a different IP

Hello everybody,

I newby with mikrotik. To begin with I will start describing our network: We have an ISP which is connected to the mikrotik in the interface ether1 (I will denote this ISP with ISP1, in order to differentiate it form others). The interfece ether3 of the mikrotik is connected to the internal LAN. The mikrotik is DHCP Server for the LAN, with addresses 192.168.0.254/24. The mikrotik has the IP address 192.168.0.254. In the LAN, we usually connect computers, printers… and as you can imagine the gateway is 192.168.0.254

On the other hand, in the same LAN we have another router of an ISP directly connected to the LAN (I will denote this ISP with ISP2). This router has the fixed IP addres: 192.168.1.1. This router is not a DHCP server. In the same LAN we have connected a specific device with a fixed IP address 192.168.1.22 (I will denote this device with DEV), the gateway of DEV is ISP2, that is, 192.168.1.1. I must say that there are severeal devices with the same configuration as DEV, but with different IP adresses, all of them are of the form 192.168.1.XXX, but in order to simplify the network we can think that there is only one of them which is DEV.

This network works fine… because the default gateway is 192.168.0.254 for all devices except for DEV whose gateway is 192.168.1.1. I can’t chage this configuration due to the specific features of DEV. I know that DEV should be in a new vlan with addresses 192.168.1.1/24, but I can’t create a new vlan because this structure is a restriction of the network that I have to mantain.

Now, we have to disconnect ISP2 from the LAN, and DEV should go to Internet through ISP1, the problem is that we can’t change the gateway of DEV (taht is 192.168.1.1), my question is: What can I do to solve this problem?

I think that I have to create a route saying that all requests form 192.168.1.XXX should go to ISP1, but I have many IPs of the form 192.168.1.XXX and I don’t know what I have to write in each field. On the other hand, I don’t know if I have to create some rule in the firewall or if I have to create a something with NAT.

Please, how can I solve this problem? Thanks.