Static Nat Configuration Lab - Zacham17/my-tech-journal GitHub Wiki

How to Configure Static NAT

To Configure Static NAT on a Cisco Router, I used the following steps:

Set Inside and Outside interfaces

  1. Run the following commands to set an inside interface:
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
  • The commands above are used to set inside facing NAT interface. In the example above the fastEthernet 0/0 interface is being set as the inside interface.
  1. Run the following commands to set an outside interface:
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
  • The commands above are used to set outside facing NAT interface. In the example above the serial 0/0/0 interface is being set as the outside interface.

Configrure Static NAT

  1. Run the following command to set NAT to translate an IP address:
R1(config)#ip nat inside source static 10.0.0.2 50.0.0.1
  • The command above tells NAT to translate the inside source IP address 10.0.0.2 to 50.0.0.1 when coming out of the outside interface.