How to Configure Static NAT

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.

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 200.200.200.1 public IP address. To do so, execute the following command.

Router1(config)#ip nat inside source static 10.0.0.2 200.200.200.1

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.

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 200.200.200.1 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 200.200.200.1

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.