Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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

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
Hall of Fame Super Blue

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

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

1 REPLY
Hall of Fame Super Blue

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

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

121
Views
0
Helpful
1
Replies
CreatePlease login to create content