cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
654
Views
5
Helpful
3
Replies

NAT Destination Server Based On Source Address

Feblex123
Level 1
Level 1

We would like to know if we can achieve the following scenario with NAT configurations on our Cisco Routers:

screenshot.242.jpg

 

Based on the diagram above, we would like that:

 

1- When Host A  (1.1.1.1) connects to the public IP address 3.3.3.3 over the internet, 3.3.3.3 translates to Server A (192.168.1.1).

 

2- When Host B  (2.2.2.2) connects to the public IP address 3.3.3.3 over the internet, 3.3.3.3 translates to Server B (192.168.1.2).

 

3- When either Server A or Server B tries to access the internet, they can both be translated to 3.3.3.3.

3 Replies 3

You NAT with route-map match acl 

From client to server set interface as ISP 1 or ISP2.

https://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13739-nat-routemap.html

Hello

You don’t state what service you need to connect via to those servers?

Static port address translation is a possible solution 

 

example:

ip nat inside source static tcp 192.168.1.1 80 3,3,3,3 80 

 

ip nat inside source static tcp 192.168.1.2 443 3,3,3,3 443 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hello,

 

I am not sure understand your topology to be honest. What is the full path the hosts take towards the servers ? What is 3.3.3.3, is that an IP address you control ? Change your diagram so it shows all individual hops between the hosts and the servers...