NAT changes the IP address in the header when crossing a router. Local IPs are inside the network, global IPs are outside.
Dynamic NAT Configuration #
Define a pool of global addresses to be used for translation.
ip nat pool [name] [start-ip] [end-ip] {netmask [netmask]} {prefix-length [prefix-length]}
Configure a standard access list permitting the addresses that should be translated.
access-list [id] permit [...]
Establish dynamic source translation, specifying the access list and pool defined in prior steps.
ip nat inside source list [id] pool [name]
Identify the inside interface.
interface [...]
,ip nat inside
Identify the outside interface.
interface [...]
,ip nat outside