cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

64
Views
0
Helpful
1
Replies
zahidlegend786
Beginner

NAT multiple IPs

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
Rising star

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

 

 

Content for Community-Ad