02-29-2012 10:13 PM - edited 03-04-2019 03:29 PM
Dear boss
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 ?
Thanking You
shahid
Solved! Go to Solution.
02-29-2012 11:40 PM
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.
Vivek.
02-29-2012 11:40 PM
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.
Vivek.
03-01-2012 01:51 AM
Thanks a lot Mr. Vivek
It is taking the command. I will wait for ur response when i face difficulties in real implementation.
Thanks.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: