Redirect IP to IP.

Hello

I need redirect ip 200x.x.x to 201.x.x.x , because i need a change ip client and this client use alarm monitoring in 200 clients.

In linux router in the past i use script above where the old ip respond normally in the new network.

iptables -t nat -I PREROUTING -d 200.x.x.x -j DNAT --to-destination 200.y.y.y
iptables -t nat -I POSTROUTING -s 200.y.y.y -j SNAT --to-source 200.x.x.x.

In the mikrotik i dont have a idea to make in the firewall.

PS: Sorry my terrible english.

iptables -t nat -I PREROUTING -d 200.x.x.x -j DNAT --to-destination 200.y.y.y
iptables -t nat -I POSTROUTING -s 200.y.y.y -j SNAT --to-source 200.x.x.x.

First rule,
ip firewall nat add action=dst-nat chain=dstnat dst-address=200.x.x.x to-addresses=200.y.y.y

Second rule,
ip firewall nat add action=src-nat chain=srcnat src-address=200.y.y.y to-addresses=200.x.x.x

what is difference between using scr/dst-nat and netmap?

With DST-NAT/SRC-NAT you have static entries, you define which address will be give to client’s address.

With Netmap you specify range, that is used for dynamic DST-NAT/SRC-NAT selections.

well, I use Netmap for mapping 192.168.x.x to 10.25.x.x, and my 192.168.16.85 is always mapped to 10.25.16.85 - it’s not dynamic =)

But you don’t need to create that NAT rule, isn’t it ?

hmmm… i do need it =) because our network addressing 192.168.x.x need to be part of 10.x.y.y network, and we don’t want to change statically set 192.168.x.x addresses at users’ computers

Hi, I looking for help.
I’m trying to redirect the whole traffic of two host in the LAN to a listening machine connected through the wirelesses device.
The two Host will be ethe2 10.73.3.89/30 and ethe3 10.73.3.90/30.
The wirelesses machine will be wlan1 192.168.88.XX
The router will be 192.168.88.1
This is for do some experiment labs using scapy.
If not possible using subnet mask /30. Then we will use /24
Thank you for help.