Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Static NAT for a high number of addresses

Hi,

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

Thanks for hints.

Mat

3 REPLIES
Silver

Re: Static NAT for a high number of addresses

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.

New Member

Re: Static NAT for a high number of addresses

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.

Regards,

Mat

New Member

Re: Static NAT for a high number of addresses

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.

139
Views
0
Helpful
3
Replies
CreatePlease to create content