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

NATs for network ranges

berndtonn
Level 1
Level 1

Dear all,

we have a scenario where one of our customers has multiple subnets that are not compatible with our addressing scheme. They are using 192.168.n.0/24,but we want to address them with 10.m.112.0/24. The host addresses within the networks should stay the same during translation and we want to avoid configuring lots of "ip nat inside source static <inside-local> <inside-golbal>" commands.

Can we use

ip nat inside source static network 192.168.241.0 10.130.112.0 /24

ip nat inside source static network 192.168.242.0 10.145.112.0 /24

ip nat inside source static network 192.168.243.0 10.146.112.0 /24

to translate the whole network prefixes ? Does that translate 192.168.243.123 into 10.146.112.123, for example ? Or are there other or additional commands needed to achieve that ?

Thank you very much in advance.

1 Reply 1

vkapoor5
Level 5
Level 5

Yes, Your configuration will absolutely works for what you are thinking. And be sure that for Network static address translation, make sure that both source and destination network prefix lengths the same. For eg,

ip nat inside source static network 10.1.1.0 192.168.1.0 /28

This configuration allows static one-to-one static mapping from 10.1.1.1 to 10.1.1.15, but if u try translation for 10.1.1.16 or greater, you will get ICMP time exceeded error messages.