sho ip nat translations
   Useful:  sho ip nat translations | i ---
sho ip nat statistics

Inside Local  = A private IP in your network like 192.168.88.1
Inside Global  = A public IP which is in your network.
Outside Global  = The destination public IP

Outside Local  =A private IP address referencing an outside device (seen when NAT is
used at the destination location).


 

Staic NAT

static-nat

R1

interface fa0/0
  ip nat inside

interface fa0/1
  ip nat outside

ip nat inside source static 10.0.0.11 23.0.0.123

Dynamic NAT

We use the same topology.

  1. Configure the inside and outside interfaces
  2. Configure a pool of IP addresses (outside IPs)
  3. Configure an ACL which decides which IP addresses will be translated (inside IPs)
  4. Use the previously configured ACL and Pool in a NAT rule
interface fa0/0
  ip nat inside

interface fa0/1
  ip nat outside

ip nat pool Host-Pool 23.0.0.17 23.0.0.30 prefix-length 28
access-list 1 permit 10.0.0.0 0.0.0.255
ip nat inside source list 1 pool Host-Pool

Advertisements