ASA 5520 NAT static - One-to-one static with SLA Monitor

Unanswered Question
Aug 4th, 2010
User Badges:

Hi everyone, first of all, I'm sorry for my english!!!

I have a Cisco ASA with 03 interfaces:

- outside (

- primary (

- backup (

Also, I have one primary server with its backup server located in other site. Both servers have a real IP address and a virtual IP address:

- Primary Server: (real IP: (virtual IP:

- Backup Server: (real IP: (virtual IP:

The ASA has two routes for the "virtual IP address" of the servers, like this:

route primary 1 track 123

route backup 10   (note the weight of this second route)

The track 123 monitors the real ip address of the primary server (, so when this server is down, the ASA automatically

changes the route to, using as next-hop instead This works fine.

But, we also need to hide the IP address to the clients that access through the outside interface. So, we use a static NAT mapping the IP with the IP

static (primary,outside)

static (backup,outside)

The problem is that if I do this neither of the statics work (OF COURSE, conceptually this totally makes sense to me)

I have to choose only one of both "statics", the primary or the backup interface.What I actually need is that the ASA map the global IP to the local IP through the interface where the route is active to the virtual IP address at that moment, and all this has to be automatic.

We had recently migrated from one Cisco 1811 Router to this ASA, and with the router this works just fine (sure, no INTERFACE mapping is needed for the static).

Can somebody please help me with this!!!!!!

Diagrama1.jpegthrough the interface where it knows

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Nagaraja Thanthry Wed, 08/04/2010 - 18:12
User Badges:
  • Cisco Employee,


Does your ISP's (both) have a route to pointing to your ASA's

interfaces? Can you try it on one interface alone i.e. primary interface and

see if that works?



August Ritchie Wed, 08/04/2010 - 18:34
User Badges:
  • Bronze, 100 points or more

It appears that he has a single ISP but two local interfaces that one real server exists behind.

This server has two NICs behind two different interfaces on the ASA, both these NICs have IP addresses in 2 different networks, but share a third, vitrual IP address. He is trying to NAT this virtual IP address to one translated IP, but on two different internal interfaces.

As far as I can see this is not possible.

The reason being that the destination nat will disregard whatever route is in place. This can be seen if someone has a static NAT incorrectly configured. Like

static (inside,outside)

and even though the routing table may say is actually on the DMZ, the packet is going to be pushed out the inside and you will get an error in the logs that says "no route to host".

Hopefully this will show where the flaw in the config is...

e.pedersen Thu, 08/05/2010 - 07:08
User Badges:


There are two servers, no only one and each server is located at different places and connected to differents interfaces of the ASA.

We dont have any problem with the routes. Only the problem with this static.

As far I know too, is it not possible to do what I need with the ASA, but, I actually use version 8.0.(4) in the ASA, and I was looking if a workaround exist, considering the new 8.3 version of the ASA and all the NAT new features this version has.

I really need to solve this. Also I think is not a bad idea to have a feature that can help with this kind of things.

Nagaraja Thanthry Thu, 08/05/2010 - 08:55
User Badges:
  • Cisco Employee,


Let us try the following:

access-list server1 permit ip any

static (Primary,outside) access-list Server1

access-list server2 permit ip any

static (Backup,outside) access-list Server2

Hope this helps.



e.pedersen Thu, 08/05/2010 - 09:18
User Badges:

Hi Nagaraja,

I would like to try your advice, but, like I said, actually we' re using 8.0.(4) version, and if needed we will update to 8.3.x

This ASA is in production, so I cannot upgrade this asa only to try this, and sadly I dont have any ASA free just to try this.

If somebody can help me trying this with 8.3.x in a lab enviroment would be great.


e.pedersen Fri, 08/06/2010 - 13:49
User Badges:

anybody can help me trying this in a lab enviroment with asa 8.3.x?

access-list server1 permit ip any

static  (Primary,outside) access-list Server1

access-list server2 permit ip any

static (Backup,outside) access-list  Server2

Nagaraja Thanthry Sat, 08/07/2010 - 16:49
User Badges:
  • Cisco Employee,


If you are using 8.3, the syntax will be different:

object network Server


object network Server_pub


nat (any,any) source static Server Server_pub

I have tested this on one of our spare firewalls with 8.3 and it does work. So, you should be able to configure it on your firewall.

Hope this helps.



e.pedersen Mon, 08/09/2010 - 11:41
User Badges:

Hi Nagaraja,

I will try this... I will let you know if it works or not as soon I can.



This Discussion