04-25-2020 07:49 AM
If i i have source subnet 192.168.0.0/24 and traffic flowing from inside to outside inferface and in outside interface I have 3 destination and want to perform different nat for different destination how can i do the nat
for ex
flowing to 1st destination source IP should nat in 163.128.1.0 subnet
flowing to 2nd destination source Ip should nat in 10.0.0.1 Ip
flowing to 3rd destination source Ip should nat in 172.13.14.0 subnet
All the traffic flowing from inside to single outside interface
04-25-2020 09:11 AM
Perhaps there are aspects of this question that we do not know yet. But it seems fairly straight forward. If you want to translate differently depending on which of 3 destination addresses is being used then you would need 3 access lists to identify traffic to be translated and 3 translate statements to do the translation. It would be something like this
access-list 101 permit ip <source subnet> <source mask> <dest1> <dest1 mask>
access-list 102 permit ip <source subnet> <source mask> <dest2> <dest2 mask>
access-list 101 permit ip <source subnet> <source mask> <dest3> <dest3 mask>
and then
translate statement using 101 and specifying address in 163.128.1.0
translate statement using 102 and specifying address 10.0.0.1
translate statement using 103 and specifying address in 172.13.14.0
04-25-2020 04:19 PM
Hello
That is applicable as long as those natted inside global addressing natted to a public ip address(s) is reachable from the outside
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide