Configuring Port Address Translation (PAT) on Cisco devices

With Port Address Translation (PAT), a single public IP address is used for all internal private IP addresses, but a different port is assigned to each private IP address. This type of NAT is also known as NAT Overload and is the typical form of NAT used in today’s networks. It is even supported by most consumer-grade routers.

PAT allows you to support many hosts with only few public IP addresses. It works by creating dynamic NAT mapping, in which a global (public) IP address and a unique port number are selected. The router keeps a NAT table entry for every unique combination of the private IP address and port, with translation to the global address and a unique port number.

You will be able to create the corresponding Configlet commands using Network Configuration Manager application. This will help you perform the same operation on multiple devices simultaneously.

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

To configure PAT, the following commands are required:

  1. Configure the router’s inside interface using the ip nat inside command.
  2. Configure the router’s outside interface using the ip nat outside command.
  3. Configure an access list that includes a list of the inside source addresses that should be translated.
  4. Enable PAT with the ip nat inside source list ACL_NUMBER interface TYPE overload global configuration command.

Steps to configure PAT for the network picture above using 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.


  4. Configure the router's inside interface
  5. Router(config)#interface Gi0/0

    Router(config-if)#ip nat inside


  6. Configure the router's outside interface
  7. Router(config)#interface Gi0/1

    Router(config-if)#ip nat outside

  8. Define an access list that will include all private IP addresses you would like to translate within interface config mode
  9. Router(config-if)#access-list 1 permit


  10. Enable NAT and refer to the ACL created in the previous step and to the interface whose IP address will be used for translations
  11. Router(config)#ip nat inside source list 1 interface Gi0/1 overload

  12. Exit config mode
  13. Router(config)#exit


  14. Execute show ip nat translations command to view the NAT configuration.
  15. Notice that the same IP address ( has been used to translate three private IP addresses (,, and The port number of the public IP address is unique for each connection. So when S1 responds to, R1 look into its NAT translations table and forward the response to

  16. Copy the running configuration into startup configuration using below command
  17. Router#write memory

    Building configuration... [OK]


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.

Configlet Name Configure PAT - Port Address Translation - Cisco
Description This configlet is used to configure Port Address Translation PAT on cisco devices
Execution Mode Script Execution Mode
Configlet Content
configure terminal
interface $INSIDE_INTF
ip nat inside
interface $OUTSIDE_INTF
ip nat outside
ip nat inside source list $ACL_ID pool $POOL_NAME overload
show ip nat translations
write memory