cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
315
Views
0
Helpful
1
Replies

NAT multiple IPs

zahidlegend786
Level 1
Level 1

Guys,

I need to NAT a range of IP to another range of IPs. However I want certain address to map to certain addresses. I know this can be done with static NAT. However there are quite a few address and I don't want to have to create a static NAT for each separate address

 

Currently I have dynamic NAT working for the ranges however when the addresses get NATed they NAT to random IPs from the Pool

 

Is there a way to NAT from the Pool so it matches certain IPs or is there a way to set the pool to work in order of IPs listed e.g

 

192.168.1.1   -    172.16.1.1

192.168.1.2  -     172.16.1.2

192.168.1.3  -     172.16.1.3

..................................

1 Reply 1

Rishabh Seth
Level 7
Level 7

Hi,

You can create network object for IP ranges and create static NAT statements for the same:

Config example:

ciscoasa(config)# sh run object
object network real-range
 range 192.168.1.1 192.168.1.10
object network mappedrange
 range 100.1.1.1 100.1.1.10

ciscoasa(config)# nat (inside,outside) source static real-range mappedrange

 

 

 

Thanks,

R.Seth

 

 

Review Cisco Networking for a $25 gift card