Configuration

Define the 'inside' interface(s) connected to the internal network.

R1(config)# int g0/1
R1(config-if)# ip nat inside

Define the 'outside' interface(s) connected to the external network.

R1(config-if)# int g0/0
R1(config-if)# ip nat outside

Configure the one-to-one IP address mappings: ip nat inside source static <inside-local-ip> <inside-global-ip>

R1(config)# ip nat inside source static 192.168.0.167 100.0.0.1
R1(config)# ip nat inside source static 192.168.0.168 100.0.0.2
  • Outside Local - The IP address of the outside host, from the perspective of the local network.

  • Outside Global - The IP address of the outside host, from the perspective of the outside network

Unless destination NAT is used, Outside Local and Outside Global will be the same.

Inside/Outside - Location of the host

Local/Global - Perspective

clear ip nat translation * - can be used to clear all NAT configurations.

Last updated