Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

NAT of Source AND destination address

Typically with NAT you are changing either and inside or outside address to another address.

Is if possible to change both inside and outside addresses within the same router?

That is rewrite both source and destination addresses within the same router. Both source and destination addresses to be changed are fixed and are not local to any interface on the router. The final (egress) addresses could be made local one of the router interface or maybe even a loopback interfaces.

Does anyone have or know of a sample configuration?

Many thanks.


Re: NAT of Source AND destination address

Easier than you'd think:

int f0/0

ip nat inside

int f0/1

ip nat outside

ip nat inside source static a.a.a.a b.b.b.b

ip nat outside source static c.c.c.c d.d.d.d

This changes the source address of traffic from a.a.a.a coming into f0/0 to b.b.b.b, and the destination (if it goes out f0/1) from c.c.c.c to d.d.d.d.

New Member

Re: NAT of Source AND destination address


Is this also possible using the following commands:

ip nat inside source list acl-101 pool pool-101

ip nat outside source list acl-102 pool pool-102


ip access-list extended acl-101

permit ip host a.a.a.a host d.d.d.d


ip access-list extended acl-102

permit ip host y.y.y.y host d.d.d.d


ip nat pool pool-101 b.b.b.b b.b.b.b netmask

ip nat pool pool-101 c.c.c.c netmask

Thanks for any reponse.

CreatePlease to create content