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

NAT IP based on Destination Address

Craddockc
Level 3
Level 3

Community,

 

 

I have a NAT situation that I am hoping you can help me resolve. We have an internal File Transfer system with IP 10.110.80.51. This system gets NATed to a static public IP address (64.x.x.113) that we own when it is to hit the internet or hop on a VPN tunnel. We have a situation where we need this same system to communicate with another customer (via S2S VPN), but the customer requires us to use a different internal IP provided by them for this system when communicating with them across the tunnel. That is to say, we cannot use the NAT entry that currently exists for this particular situation.

 

I was hoping I could NAT this internal system to the IP provided by the customer, but only during instances where the traffic is destined to their systems from us. I want all other traffic to get NATed to the existing 64.x.x.113 address when this system is destined anywhere else.

 

Will this work?

 

access-list extended CUST_NAT_ACL1


permit ip host 10.110.80.51 1.1.0.0 255.255.0.0 (first public dest subnet belonging to the customer)

permit ip host 10.110.80.51 2.2.0.0 255.255.0.0  (2nd public dest subnet belonging to the customer)

 

 

route-map CUST_RP1

match address CUST_NAT_ACL1

 

ip nat inside source static 10.110.80.51 10.201.103.169 (IP address provided by the customer) route-map CUST_RP1
ip nat inside source static 10.110.80.51 64.x.x113 (existing NAT for use in all other situations)

 

Also, will this NAT apply only to traffic originating from us to them? or is it bidirectional? Meaning if they send traffic on the tunnel to 10.110.80.51, will the NAT rule NAT the traffic to 10.201.103.169? If so, that would be undesirable behavior.

 

Thanks.

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

Rather explain more, simple example from Cisco will help you.

 

http://www.ciscozine.com/nat-and-pat-a-complete-explanation/

 

BB

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Jon Marshall
Hall of Fame
Hall of Fame

 

Your NAT setup should work. 

 

A static NAT statement allows connections from both sides but the customer would not be sending traffic to the real IP they would be sending traffic to the 10.201.103.169 IP address. 

 

If you only want connections to happen from your end then don't use static NAT. 

 

Jon

Review Cisco Networking for a $25 gift card