Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

NAT Pool on Cisco router

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

Re: NAT Pool on Cisco router

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

9 REPLIES

Re: NAT Pool on Cisco router

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.

New Member

Re: NAT Pool on Cisco router

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.

Re: NAT Pool on Cisco router

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?

New Member

Re: NAT Pool on Cisco router

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.

Re: NAT Pool on Cisco router

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

New Member

Re: NAT Pool on Cisco router

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

New Member

Re: NAT Pool on Cisco router

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

Re: NAT Pool on Cisco router

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.

Re: NAT Pool on Cisco router

346
Views
0
Helpful
9
Replies
CreatePlease login to create content