Static NAT for a high number of addresses

Unanswered Question
Mar 13th, 2008


I need to statically NAT 10000 IP addresses. Is there any possibility to configure this with only a few config statements?

Thanks for hints.


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
aghaznavi Wed, 03/19/2008 - 14:08

A static NAT configuration creates a one-to-one mapping and translates a specific address to another address. This type of configuration creates a permanent entry in the NAT table as long as the configuration is present and enables both inside and outside hosts to initiate a connection.

MATTHIAS SCHAERER Thu, 03/20/2008 - 00:40

Thanks for your answer. However it does not help me at all. My question was how to configure a high number of static NAT entries. I know what the purpose of a static NAT entry is technically spoken.



james.leavers Thu, 03/20/2008 - 09:07

As a static NAT entry is a one-to-one mapping, you would need 10,000 entries like this:

ip nat inside source static x.x.x.x y.y.y.y

Where for each one, x.x.x.x is one of your 10,000 inside addresses, and y.y.y.y is one of your 10,000 outside addresses.

You can use a NAT pool for the group of outside addresses, and an access list for the group of inside addresses - but this would be for dynamic NAT.

I'm not sure there is a quick way of creating the configuration you require unfortunately. If the IP addresses were sequential you could write a script to generate the lines of configuration, and then paste them in, I suppose.


This Discussion