Community discussions

MikroTik App
 
Albertonin
just joined
Topic Author
Posts: 1
Joined: Tue May 02, 2023 1:19 pm

4 ip device with the same IP called from different ports and other ip address.

Tue May 02, 2023 1:36 pm

Hi Forum,
I have seen some post about this topic but none of them works for me.
I have 4 devices, with the same ip 10.0.0.1 all connected to a different port on the Mikrotik, and a computer connected to another port and need to access them using a browser at the same time to log into them, write some information and save, I was thinking to call them using other IP like 10.0.0.11, 10.0.0.12, 10.0.0.13 and 10.0.0.14 having the 10.0.0.2 in the computer but have not been possible, I am using as a sample a post I saw in the forum but is not working. see below what I am using as a sample but is not working.

/ip address
add address=192.168.1.11/24 interface=ether1 network=192.168.1.0
add address=192.168.1.12/24 interface=ether1 network=192.168.1.0
add address=192.168.0.1 interface=ether2 network=192.168.0.1
add address=192.168.0.1 interface=ether3 network=192.168.0.1
/ip firewall mangle
add action=mark-connection chain=prerouting dst-address=192.168.1.11 new-connection-mark=port1
add action=mark-connection chain=prerouting dst-address=192.168.1.12 new-connection-mark=port2
add action=mark-routing chain=prerouting connection-mark=port1 new-routing-mark=port1 passthrough=no
add action=mark-routing chain=prerouting connection-mark=port2 new-routing-mark=port2 passthrough=no
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=192.168.1.11 dst-port=80 protocol=tcp to-addresses=192.168.0.2
add action=dst-nat chain=dstnat dst-address=192.168.1.12 dst-port=80 protocol=tcp to-addresses=192.168.0.2
add action=masquerade chain=srcnat out-interface=ether2
add action=masquerade chain=srcnat out-interface=ether3
/ip route
add distance=1 dst-address=192.168.0.0/24 gateway=ether2 routing-mark=port1
add distance=1 dst-address=192.168.0.0/24 gateway=ether3 routing-mark=port2


I need some help from the forum.

Who is online

Users browsing this forum: Cmon169, dioeyandika, tangent and 33 guests