aghaznavi Wed, 03/19/2008 - 14:08
User Badges:
  • Silver, 250 points or more

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
User Badges:

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
User Badges:

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