Masquerade to multiple external IPs

I’m using two Internet IP addresses setup thus:

[admin@Net4501] ip address> pr
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK BROADCAST INTERFACE

0 192.168.1.253/24 192.168.1.0 192.168.1.255 Internal
1 82.69.230.205/29 82.69.230.200 82.69.230.207 Internet
2 192.168.2.254/24 192.168.2.0 192.168.2.255 DMZ
3 82.69.230.201/29 82.69.230.200 82.69.230.207 Internet

I have these NAT rules setup:

[admin@Net4501] ip firewall src-nat> pr
Flags: X - disabled, I - invalid, D - dynamic
0 src-address=192.168.1.0/24 out-interface=Internet action=masquerade to-src-address=82.69.230.205
1 src-address=192.168.2.0/24 action=masquerade to-src-address=82.69.230.201

However, if I visit http://whatismyip.com from a PC located on the DMZ the IP address is shown as 82.69.230.205 and not 201 as I would expect. What am I doing wrong here?

Regards

Andrew

Use ‘action=nat’ instead of ‘action=masquerade’

Thanks for that. I’ll have to read up on the difference between NAT and Masquerade.

In the meantime, I’ve setup a bridge interface between the outside and DMZ and the DMZ device has a public IP, which got me around the problem.

Regards

Andrew