I have a IP 192.168.0.1 and i NAT it to 172.25.40.1
like ip nat inside source static 192.168.0.1 172.25.40.1 as outsider can get 172.25.40.1.
Now i want to NAT 192.168.0.1 to 172.30.40.1 as both 172.30.40.1 and 172.25.40.1 get 192.168.0.1.
How can i do it ?
Yes you can. But depends on what version of IOS you are running. NAT with route-maps was introduced in 12.4(T) i believe.
access-list 101 permit ip host 192.168.0.1 host x.x.x.x
access-list 102 permit ip host 192.168.0.1 host y.y.y.y
route-map NAT_25 permit 10
match ip address 101
route-map NAT_30 permit 10
match ip address 102
ip nat inside source static 192.168.0.1 172.25.40.1 route-map NAT_25
ip nat inside source static 192.168.0.1 172.30.40.1 route-map NAT_30
Test this out & let me know. Replace the x.x.x.x with the destination X & replace y.y.y.y with destination y
Hope you got it.