Configuring static NAT on Cisco devices

With static NAT, routers or firewalls translate one private IP address to a single public IP address. Each private IP address is mapped to a single public IP address. Static NAT is not often used because it requires one public IP address for each private IP address.

To configure static NAT on Cisco devices using Network Configuration Manager, you can create the corresponding Configlet commands and push them in multiple devices.

If you don't have NCM installed, please click here to download and install the application.

To configure static NAT on Cisco devices, following steps are required:

  1. Configure private/public IP address mapping by using the ip nat inside source static PRIVATE_IP PUBLIC_IP command
  2. Configure the router’s inside interface using the ip nat inside command
  3. Configure the router’s outside interface using the ip nat outside command

Steps to configure static NAT on Cisco devices through CLI

  1. Login to the device using SSH / TELNET and go to enable mode.
  2. Go into the config mode.
  3. Router#configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.

    Router(config)#

  4. Use below command to configure static NAT
  5. Router(config)#ip nat inside source static 10.0.0.2 59.40.40.1

  6. Configure the router's inside interface
  7. Router(config)#interface fa0/0

    Router(config-if)#ip nat inside

    Router(config-if)#exit

  8. Configure the router's outside interface
  9. Router(config)#interface fa0/1

    Router(config-if)#ip nat outside

    Router(config-if)#exit

  10. Exit config mode
  11. Router(config)#exit

    Router#

  12. Execute show ip nat translations command to view the NAT configuration.
  13. Copy the running configuration into startup configuration using below command
  14. Router#write memory

    Building configuration... [OK]

    Router#

The corresponding configlet can be created in NCM application as shown in below screenshot.

 

Also you can click the below button to download the Configlet as XML and import it into NCM application using file import option.

Download Configlet XML
SHA256 value
b47b2271c511588edbaf6c8b7db3afcc14dfcdf757b2eaf6fb1989221adde34f
Click to copy SHA256 value
Configlet Name Configure Static NAT - Cisco
Description This configlet is used to configure static NAT in Cisco devices.
Execution Mode Script Execution Mode
Configlet Content
configure terminal
ip nat inside source static $PRIVATE_IP $PUBLIC_IP
interface $INSIDE_INTF
ip nat inside
exit
interface $OUTSIDE_INTF
ip nat outside
exit
exit
show ip nat translations
write memory