05-29-2013 02:48 PM - editado 03-21-2019 04:50 PM
Can someone please explain to me the use of 'nopreservation' keyword in the 'ip nat pool' command?
el 05-30-2013 08:03 AM
Hi Hammad,
The "nopreservation" keyword enables all the IP addresses in the pool to be used for dynamic translation.
Comparisons with option turned on and off:
===================================
a) option on:
ip nat pool test 10.0.0.1 10.0.0.2 prefix-length 24 nopreservation
c1841-7#sh ip nat tr
Pro Inside global Inside local Outside local Outside global
53 10.0.0.2:0 25.1.1.13:0 14.1.1.11:0 14.1.1.11:0
--- 10.0.0.2 25.1.1.13 --- ---
53 10.0.0.1:0 25.1.1.14:0 14.1.1.11:0 14.1.1.11:0
--- 10.0.0.1 25.1.1.14 --- ---
The above shows that the first nat pool address is available for nat translation.
Or:
c1841-7#sh ip nat tr
Pro Inside global Inside local Outside local Outside global
udp 10.0.0.2:6300 25.1.1.13:6300 14.1.1.11:6300 14.1.1.11:6300
53 10.0.0.1:0 25.1.1.14:0 14.1.1.11:0 14.1.1.11:0
--- 10.0.0.1 25.1.1.14 --- ---
The above shows that the first nat pool address is available for nat translation.
a) option off:
ip nat pool test 10.0.0.1 10.0.0.2 prefix-length 24
c1841-7#sh ip nat tr
Pro Inside global Inside local Outside local Outside global
udp 10.0.0.2:6300 25.1.1.13:6300 14.1.1.11:6300 14.1.1.11:6300
The above shows that the first nat pool address is not available for nat translation of packets with ip unknown protocols.
Please let me know if this information helps you.
Regards,
Bernardo
Descubra y salve sus notas favoritas. Vuelva a encontrar las respuestas de los expertos, guías paso a paso, temas recientes y mucho más.
¿Es nuevo por aquí? Empiece con estos tips. Cómo usar la comunidad Guía para nuevos miembros
Navegue y encuentre contenido personalizado de la comunidad