cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1939
Views
0
Helpful
9
Replies

NAT Pool on Cisco router

vman1976nj
Level 1
Level 1

I am configuring a Cisco Router and would like to do NAT so there is a one to one translation from the inside private network to outside public network.

For this example lets assume that 10.10.10.0/24 is a block of public IP's and 192.168.1.0/24 is my private. I'd like the addresses to translate as:

192.168.1.1 -> 10.10.10.1

192.168.1.2 -> 10.10.10.2

...

...

192.168.1.25 -> 10.10.10.25

...

192.168.1.99 -> 10.10.10.99

...etc

Is there a way to do this on 3825 router? It's easy to do on ASA or PIX but reading through the Cisco documents it looks like the routers randomly assign an IP from a pool. I need the last octet of the IP to match on the translation so I can track down which user got which public IP.

1 Accepted Solution

Accepted Solutions

a.alekseev
Level 7
Level 7

R1(config)#ip nat inside source static network ?

A.B.C.D Inside local network

ip nat inside source static network 192.168.1.0 10.10.10.0 /24

View solution in original post

9 Replies 9

Collin Clark
VIP Alumni
VIP Alumni

ip nat inside source static 10.10.10.1 192.168.1.1

ip nat inside source static 10.10.10.2 192.168.1.2

....

....

Hope that helps.

Thanks, thats one way to do it but I don't want to have to enter that statement 255 times. I'm hoping theres a way to NAT the entire network in 1 statement.

I agree, but it's the only way I know of. If there's a better way to do it, hopefully we'll hear how. How do you do it on an ASA?

On ASA I'd do:

static (inside,outside) 10.10.10.0 192.168.1.0 netmask 255.255.255.0

but its a whole different animal.

I think a.alekseev's suggestion is going to work. I'll test it out and report back.

a.alekseev
Level 7
Level 7

R1(config)#ip nat inside source static network ?

A.B.C.D Inside local network

ip nat inside source static network 192.168.1.0 10.10.10.0 /24

This looks like exactly what I needed. I'm going to test it out later and report back. Thanks for the help.

Worked like a charm on in my production environment. Thanks for the help.

Do you have a configuration example? It does not map the fourth octet for the one-one NAT translation, but I may not have it configured correctly.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card