cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1064
Views
0
Helpful
3
Replies

PAT with static NAT on same interface

imanassypov
Level 1
Level 1

Hi All,

Does having the following configuration on an ios device present any possibility that an egress stream PAT'ed to loopback gets source port translated to the statically nat'ed port?

interface Loopback0

ip address y.y.y.y

ip nat outside

ip nat inside source list acl interface Loopback0 overload

ip nat inside source static tcp x.x.x.x 7062 y.y.y.y 7062

For example, egress private ip address getting pat'ed to the loopback, eventually will have its source port translated to the '7062' in this case. How does the IOS route the return packet vs a new stream hitting the y.y.y.y on the same port?

thanks!

3 Replies 3

johnlloyd_13
Level 9
Level 9

hi,

i haven't encountered a loopback interface used for PAT. you should set the WAN physical port as the NAT outside interface. loopback interfaces are usually used for device management purposes.

Marwan ALshawi
VIP Alumni
VIP Alumni

well loopback interface sometimes can be used for some unconventional NATing cases such as NAT on stick, but you need to use PBR with it

see the bellow link:

http://www.cisco.com/en/US/tech/tk648/tk361/technologies_tech_note09186a0080094430.shtml

not sure in your case what you trying to achieve !

hope this help

hey marwan,

nice link! good to know this exist

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