Select an specific public IP address for NAT

Hi,
I’ve a mikrotik router doing NAT for some devices within my network, I’ve two different type of users, with separated VLANs and separated DHCP Servers. I’ve multiple public IP addresses in the router, but when I configure the NAT I use the same public IP for both NATs, how can I use one public IP address for one group of users and another public IP address for another NAT?

Thanks,

I’ve used this before with a src-address parameter.

/ip firewall nat
add chain=srcnat action=src-nat src-address=192.168.0.1/24 to-addresses=x.x.x.x
add chain=srcnat action=src-nat to-addresses=x.x.x.y

The 192.168.0.0/24 net will nat to public ip x.x.x.x, and all others nat to x.x.x.y.

How this could be done if router gets 2 dynamic wan ips with dhcp?

I didn’t work, I’m still seeing x.x.x.z as my public IP address when using x.x.x.x

You should post “/ip route” and “/ip firewall nat”.