Static Network Address Translation (NAT) is a technique that translates private IP addresses into public IP addresses. To configure Static NAT, an administrator needs to manually map each IP address individually. This technique is typically helpful for a small network that contains the limited number of hosts. In this post, we will explain how to configure Static NAT on Cisco router.
We will use the following topology to configure Static NAT. You can use either Cisco Packet Tracer or GNS3 simulator, depending on your choice, to create the following topology.Before to configure Static NAT, ensure that you have configured appropriate IP addresses on the devices mentioned in the topology. In addition, you also need to perform a routing algorithm. You can use any of the routing algorithms depending on your choice. If you face any problem to configure IP addresses and routing, please refer the following links.
Steps to Configure Static NAT
To configure Static NAT, you need to perform the following steps:
- On Router1, execute the following command to specify the inside interface that is Fa0/0.
Router1(config)#int fa0/0 Router1(config-if)#ip nat inside Router1(config-if)#exit
- Next, execute the following command to specify the outside interface that is Fa0/1.
Router1(config)#int fa0/1 Router1(config-if)#ip nat outside Router1(config-if)#exit
- Once, you have defined the inside and outside interfaces, now you need to specify the private IP addresses that need to be translated into the public IP addresses. In this case, we will translate 10.0.0.2 private IP address into 22.214.171.124 public IP address. To do so, execute the following command.
Router1(config)#ip nat inside source static 10.0.0.2 126.96.36.199
- The following figure shows how to configure static NAT on a router.
- Once, you have configured Static NAT, now it’s time to verify your configuration.
- To verify the static NAT configuration, open Command Prompt on PC0, type ping 188.8.131.52. Leave the Command Prompt active.
- Move on to Router1 and type the following command to view the NAT translation table.
Router1#show ip nat translations
In the preceding figure, you can see that 10.0.0.2 private IP address has been translated into 184.108.40.206 public IP address.
Removing NAT Configuration
If you have mapped a wrong IP address or want to disable the NAT translation for any reason, execute the following command.
Router1(config)#no ip nat inside source static 10.0.0.2 220.127.116.11
In this post, we have explained how to configure Static NAT. Hope, it helped you. Please subscribe our blog to get updated posts and also share to others if you think it can help other too. We would also appreciate you if you provide your valuable suggestions and feedback.