×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

NAT same server to different IPs

Answered Question
Aug 19th, 2013
User Badges:

Hi,


I am trying to implement the following NAT on a Cisco Router:


Server A (10.0.0.1) ----------- Router ------------ WAN


The server A communicates with 2 different networks in the WAN. For each of these two networks, server A must be natted to a different IP, let's say:


1. Server A communicates with network A --> NAT 10.0.0.1 to 172.16.0.1

2. Server A communicates with network B --> NAT 10.0.0.1 to 192.168.0.1


I suppose it won't work, when I just do


ip nat inside source static 10.0.0.1 172.16.0.1 route-map network_A

ip nat inside source static 10.0.0.1 192.168.0.1 route-map network_B


Because the second static NAT overrides the first...


When I do something like "ip nat inside source route-map...", it won't be possible to establish a connection from the outside to the inside. NAT will only work when the connection is established from inside to outside...


How can I implement this? Any ideas?


by the way, it's a

Cisco IOS Software, 2800 Software (C2800NM-ADVSECURITYK9-M), Version 12.4(25g)

Correct Answer by paul driver about 4 years 2 days ago

Hello


ip nat inside source static 10.0.0.1 172.16.0.1 route-map network_A extendable

ip nat inside source static 10.0.0.1 192.168.0.1 route-map network_B extendable


res

Paul


Please don't forget to rate any posts that have been helpful.


Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
paul driver Mon, 08/19/2013 - 12:08
User Badges:
  • Green, 3000 points or more

Hello


ip nat inside source static 10.0.0.1 172.16.0.1 route-map network_A extendable

ip nat inside source static 10.0.0.1 192.168.0.1 route-map network_B extendable


res

Paul


Please don't forget to rate any posts that have been helpful.


Thanks.

jawad-mukhtar Mon, 08/19/2013 - 20:26
User Badges:
  • Silver, 250 points or more

what u have defined in route-map



Jawad

sebastian.lemke Tue, 08/20/2013 - 03:10
User Badges:

works fine, thanks!


@Jawad: The route-maps contain an ACL, with a permit of the defined source and destination IPs for both connections.

Actions

This Discussion