5.2 NAT – Network Address Translation
IP address depletion is a main problem that facing in the public network. NAT (network address translation) is a solution that allows the IP network of an organization to appear from the outside to use different IP address then it own IP address.
Because the IP address is depletion therefore not all your hosts have global unique IP addresses. NAT technology is translates the private IP address into public IP address before sending packets to the outside network. There are two different methods, which is static and dynamic NAT.
ip nat inside source static
ip nat [inside outside] – Enable NAT on at least one and one outside interface by interface command
ip nat pool pool name
Ip nat inside source list
Ip nat inside destination list
Ip nat outside source list
Show ip nat translation – display the active translations
Show ip nat statistics – displayDebug ip nat [detailed] – display a line of output for each packet that gets translated.
Clear ip nat translation * - to clear all translated entries.
Clear ip nat translation inside gip lip [outside <gip> <lip>] – clear both of inside or outside translation
Clear ip nat translation outside lip gip – clear outside translation
44