cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
291
Views
0
Helpful
1
Replies

How does nat selectoin work when more than one nat command?

DaleKnutsen
Level 1
Level 1

My router's configuration contains two ip nat inside source commands with route maps. One command is a static translation and one is a dynamic. Is this the way processing works:

The inside packet source address is processed against one of the command's route map (which command?). If that route map permits the address, then the source address is natted.

However, if the first route map denies the address, then the router continues on to the second ip nat inside source command and processes the address against its route list.

Right?

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Basically yes, the router will compare the packet against all route-maps until it finds a match (if any) and then apply the NAT.

If you think about it logically it shouldn't matter which order it applies them because if you are statically mapping one address to another you would ensure that this address is never matched in your dynamic NAT setup otherwise you could get very unpredictable results.

HTH

Jon

View solution in original post

1 Reply 1

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Basically yes, the router will compare the packet against all route-maps until it finds a match (if any) and then apply the NAT.

If you think about it logically it shouldn't matter which order it applies them because if you are statically mapping one address to another you would ensure that this address is never matched in your dynamic NAT setup otherwise you could get very unpredictable results.

HTH

Jon

Getting Started

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:

Review Cisco Networking products for a $25 gift card