Community discussions

MikroTik App
 
maximvengerov99
just joined
Topic Author
Posts: 1
Joined: Sun Mar 31, 2024 1:42 am

NAT with several public IPs

Sun Mar 31, 2024 1:51 am

Hi all, I have this scenario, I want to perfom a dst NAT, using another IP address different from the 192.0.2.2 configured on Ethernet WAN of Mikrotik, but I can´t make it work, performing an ARP debug in Cisco router I see that Mikrotik never responds to the ARP packets from Cisco router asking who has 192.0.2.4 what it should, cos there's no way the Mikrotik receives the packet in anoter way, this works perfectly in Cisco routers I guess that, in somehow, Cisco router does respond the ARP packets, do you know it there's a way to make this work?


Thanks in advance
Last edited by tangent on Sun Mar 31, 2024 10:24 am, edited 1 time in total.
Reason: Removed broken image link
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11770
Joined: Thu Mar 03, 2016 10:23 pm

Re: NAT with several public IPs

Sun Mar 31, 2024 10:49 am

If the other WAN addresses are not router towards your NAT device[*], then you need to set those addresses explicitly on WAN interface. NAT only kicks into action after packet was already delivered to the device. NAT configuration does not affect the way packets are handled before they are received by NAT device.


[*] If the upstream device was Mikrotik, equivalent configuration would include
/ip/route
add dst-address=10.11.12.13/29 gateway=10.22.33.44
where 10.11.12.13/29 are the additional IP addresses to ve used for NAT and 10.22.33.44 is the "canonical" WAN IP address of NAT device.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19742
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: NAT with several public IPs

Sun Mar 31, 2024 3:39 pm

What use case for traffic flow are you trying to describe. In other words what user needs their traffic flow so contorted??

Who is online

Users browsing this forum: Bing [Bot], CGGXANNX, Google [Bot], JDF, txfz, unam83, xrlls and 55 guests