cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
821
Views
0
Helpful
2
Replies

nat

SajeshB
Level 1
Level 1

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

2 Replies 2

Richard Burts
Hall of Fame
Hall of Fame

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

HTH

Rick

Hello

That is applicable as long as those natted inside global addressing natted to a public ip address(s) is reachable from the outside


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul