Community discussions

MikroTik App
 
giogiosw
just joined
Topic Author
Posts: 2
Joined: Tue Feb 23, 2021 9:35 am

Change ip address

Tue Feb 23, 2021 9:42 am

Hello
I have a MikroTik RouterBoard hex lite (RB750r2) FW: 6.45.9 and I should realize the following condition:

The router has an ip equal to 192.168.1.10.

A cable is connected to the Eth1 port that comes from a PLC with IP address 192.168.2.5 and should exit with the IP 192.168.1.3

IP 192.168.2.5> 192.168.1.3

How can I do this?
I tried the following code but it doesn't work.
/ip firewall nat add action=dst-nat chain=dstnat dst-address=192.168.2.5 to-addresses=192.168.1.3
/ip firewall nat add action=src-nat chain=srcnat src-address=192.168.1.3 to-addresses=192.168.2.5


/ip firewall nat add chain=dstnat dst-address=192.168.2.5 action=netmap to-addresses=192.168.1.3
/ip firewall nat add chain=srcnat src-address=192.168.1.3 action=netmap to-addresses=192.168.2.5



Anyone kind enough to help me?

Who is online

Users browsing this forum: Google [Bot] and 20 guests