Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15133

Beginner Basics • Same IP on different Ether interfaces

$
0
0
Hi there

I have been trying to configure my mikrotk RB4011 to be able to have a device with the same IP address on each interface of the router. I have seen on other forum posts that this seems to be doable but I cannot seem to get it to work.

viewtopic.php?t=187178

I have put my setup below hopefully I'm doing something stupid.
Code:
/ip addressadd address=192.168.1.12/24 interface=ether1 network=192.168.1.0add address=192.168.1.13/24 interface=ether1 network=192.168.1.0add address=192.168.1.14/24 interface=ether1 network=192.168.1.0add address=10.0.0.1 interface=ether2 network=10.0.0.1add address=10.0.0.1 interface=ether3 network=10.0.0.1add address=10.0.0.1 interface=ether4 network=10.0.0.1/routing/tableadd name=port2 fibadd name=port3 fibadd name=port4 fib/ip firewall mangleadd action=mark-connection chain=prerouting dst-address=192.168.1.12 new-connection-mark=port2add action=mark-connection chain=prerouting dst-address=192.168.1.13 new-connection-mark=port3add action=mark-connection chain=prerouting dst-address=192.168.1.14 new-connection-mark=port4add action=mark-routing chain=prerouting connection-mark=port2 new-routing-mark=port2 passthrough=noadd action=mark-routing chain=prerouting connection-mark=port3 new-routing-mark=port3 passthrough=noadd action=mark-routing chain=prerouting connection-mark=port4 new-routing-mark=port4 passthrough=no/ip firewall natadd action=dst-nat chain=dstnat dst-address=192.168.1.12 dst-port=443 protocol=tcp to-addresses=10.0.0.120add action=dst-nat chain=dstnat dst-address=192.168.1.13 dst-port=443 protocol=tcp to-addresses=10.0.0.120add action=dst-nat chain=dstnat dst-address=192.168.1.14 dst-port=443 protocol=tcp to-addresses=10.0.0.120add action=masquerade chain=srcnat out-interface=ether2add action=masquerade chain=srcnat out-interface=ether3add action=masquerade chain=srcnat out-interface=ether4/ip routeadd distance=1 dst-address=10.0.0.1/24 gateway=ether2 routing-table=port2add distance=1 dst-address=10.0.0.1/24 gateway=ether3 routing-table=port3add distance=1 dst-address=10.0.0.1/24 gateway=ether3 routing-table=port4

Statistics: Posted by FillFoy — Mon Mar 25, 2024 11:34 am



Viewing all articles
Browse latest Browse all 15133

Trending Articles