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

One-to-One Nat mapping for an entire /24 subnet

Ricky Sandhu
Level 3
Level 3

Is there a simpler way to perform one-to-one mapping for an entire /24 subnet?  I have a subnet 192.168.0.0/24 that I want to map to 172.18.245.0/24 on a one to one basis. I have hundreds of lines of code in the config and it works. Curious to know if this can be performed with a single line of code?

ip nat inside source static 192.168.0.2 172.18.245.2
ip nat inside source static 192.168.0.3 172.18.245.3
ip nat inside source static 192.168.0.4 172.18.245.4
ip nat inside source static 192.168.0.5 172.18.245.5
ip nat inside source static 192.168.0.6 172.18.245.6
ip nat inside source static 192.168.0.7 172.18.245.7
ip nat inside source static 192.168.0.8 172.18.245.8

...

Thanks

1 Reply 1

Ricky,

on the ASA there is something called policy NAT, on Cisco IOS routers I don't think there is anything similar available.