Skip to content
Explore the learning library ☟
◎ Google Translate
SanchitGurukulTechnology · Education · Innovation Take a quiz

Cisco ASA NAT and PAT Explained — Types, Address Translation and Practical Examples


Imagine an office with 50 computers connected to the internet.

Each computer has a private IP address, such as 192.168.10.10 or 192.168.10.11.

Private IP addresses are not normally routed across the public internet.

How can all these computers access websites while sharing one public IP address?

One common solution is Network Address Translation (NAT).

Cisco ASA supports several types of NAT, including Port Address Translation (PAT), which allows many connections to share a translated IP address.

In this article, you will learn:

  • What NAT and PAT mean
  • How IP addresses and ports are translated
  • Differences between Static NAT, Dynamic NAT and PAT
  • How Cisco ASA tracks translated connections
  • How to configure basic Dynamic PAT on Cisco ASA
Cisco ASA Dynamic PAT Infographic

What Are NAT and PAT?

Network Address Translation (NAT)

NAT stands for Network Address Translation.

It is a networking technology that translates IP address information as packets pass through a network device.

For example, an office computer uses:

Private IP: 192.168.10.10

The firewall may translate its source address to:

Public IP: 203.0.113.10

The outside server sees the translated source IP address.

The addresses in this example are for documentation and laboratory explanations.

Port Address Translation (PAT)

PAT stands for Port Address Translation.

PAT is a type of NAT that uses transport-layer port numbers to distinguish connections sharing a translated address.

On Cisco ASA, Dynamic PAT commonly allows many internal devices to share one outside IP address.

For TCP and UDP connections, the firewall maintains the information needed to identify the correct internal connection.

How Dynamic PAT Works

Imagine two computers accessing the same HTTPS website.

Both computers happen to use source port 50000.

Computer Original Source Translated Source
PC1 192.168.10.10:50000 203.0.113.10:50000
PC2 192.168.10.11:50000 203.0.113.10:50001

In this illustrative example:

  1. PC1 starts a connection to the website.
  2. The ASA translates PC1’s source IP address and preserves source port 50000.
  3. PC2 starts another connection using the same original source port.
  4. The ASA translates PC2’s address and assigns another available translated port, such as 50001.
  5. Both connections reach the website using the shared translated IP address.
  6. When responses arrive, the ASA uses its connection and translation information to forward them to the correct computers.

Important: Cisco ASA does not necessarily change every source port. It can preserve the original port when available, depending on the PAT configuration and connection.

Cisco ASA Dynamic PAT Infographic (1)

Types of NAT in Cisco ASA

Cisco ASA supports different NAT methods for different networking requirements.

1. Static NAT

Static NAT creates a fixed mapping between a real IP address and a translated IP address.

Example:

192.168.10.20 → 203.0.113.20

The same address mapping applies whenever the matching NAT rule is used.

Static NAT is useful when an internal server requires a consistent translated address.

However, Static NAT does not automatically allow outside users to access the server. Appropriate firewall rules and routing are also required.

2. Dynamic NAT

Dynamic NAT assigns a translated IP address from a configured address pool.

For example:

  • Internal network: 192.168.10.0/24
  • Translated address pool: 203.0.113.20–203.0.113.30

When an internal device creates a matching connection, the ASA assigns an available translated address.

Unlike PAT, ordinary Dynamic NAT does not multiplex different internal addresses through one translated IP using port translation.

3. Dynamic PAT

Dynamic PAT translates internal addresses to a shared mapped IP address or addresses, using port information to distinguish connections.

For example:

  • PC1: 192.168.10.10
  • PC2: 192.168.10.11
  • PC3: 192.168.10.12

These computers can share the translated address 203.0.113.10.

When the ASA uses its outside interface address for this purpose, the configuration is called Interface PAT.

4. Static PAT

Static PAT creates a fixed address-and-port mapping.

It is commonly used for port forwarding.

For example, a connection sent to:

203.0.113.20:8443

Can be translated to:

192.168.10.20:443

This allows a particular translated address and port to correspond to a specific internal service.

A suitable firewall access rule is still necessary.

NAT Types Compared

NAT Type How It Works Common Use
Static NAT Fixed IP-to-IP mapping Servers
Dynamic NAT Assigns IP from a pool Address translation using multiple mapped IPs
Dynamic PAT Shares mapped IPs using ports Office internet access
Static PAT Fixed IP-and-port mapping Port forwarding

Practical Lab — Configure Dynamic PAT on Cisco ASA

This exercise demonstrates basic Interface PAT using Cisco ASA 9.x-style configuration syntax.

Lab Requirements

  • A lab Cisco ASA or ASAv
  • Access to the ASA CLI
  • Configured inside and outside interfaces
  • Appropriate routing and access policies

Example Network

Component IP Address
Office Computer 192.168.10.10
ASA Inside 192.168.10.1
ASA Outside 203.0.113.10
Test Destination 198.51.100.20
Service HTTPS — TCP 443

The external addresses are reserved for documentation. They require a suitable isolated lab topology for real connectivity tests.

Step 1 — Create the Network Object

Enter privileged and configuration modes on your lab ASA.

Command
enable
configure terminal
object network OFFICE_NETWORK
 subnet 192.168.10.0 255.255.255.0

This defines the internal network.

Step 2 — Configure Dynamic PAT

While still in network-object configuration mode, enter:

Command
nat (inside,outside) dynamic interface

This tells the ASA to perform Dynamic PAT using the outside interface address for matching traffic.

The interface names must match your actual lab configuration.

Step 3 — Verify the NAT Configuration

Command
end
show nat

Look for the OFFICE_NETWORK translation rule.

Illustrative output excerpt:

Output / Result
(inside) to (outside) source dynamic OFFICE_NETWORK interface

The actual output includes additional details and may vary by software version.

Step 4 — Test Using Packet-Tracer

Command
packet-tracer input inside tcp 192.168.10.10 50000 198.51.100.20 443

This simulates an HTTPS connection from the office computer.

Review the NAT processing information and final decision.

The final action may show:

Output / Result
Action: allow

Or:

Output / Result
Action: drop

The result depends on the complete firewall configuration, including routing and access policies.

An allowed simulation does not prove that the destination is reachable.

Step 5 — View Active Translations

Command
show xlate

This displays active address translations.

To observe actual translation entries, generate permitted traffic through the firewall in a working lab environment.

Packet-tracer alone does not guarantee a persistent translation entry.


Key Takeaways

Basic Concepts

  • NAT translates IP addressing information.
  • PAT is a type of NAT that also uses port information.
  • PAT does not always need to change the original source port.
  • Multiple internal connections can share one translated public IP address.

Types of NAT

  • Static NAT: Fixed IP address mapping.
  • Dynamic NAT: Address assignment from a pool.
  • Dynamic PAT: Address sharing using ports.
  • Static PAT: Fixed address-and-port mapping.

Cisco ASA Commands

  • show nat — View NAT rules.
  • show xlate — View active translations.
  • packet-tracer — Simulate firewall packet processing.

Cisco ASA uses NAT and PAT to support different network-addressing requirements.

Static NAT is suitable for fixed mappings, Dynamic NAT uses address pools, and Dynamic PAT commonly allows multiple office computers to share a public IP address.

Understanding these differences makes firewall configuration and troubleshooting easier.

Next Article: Cisco ASA VPN and High Availability Explained — Site-to-Site VPN, Remote Access and Firewall Failover.


SanchitGurukul Resources

Official Cisco References

Your feedback matters

Was this post helpful?

0 reactions

SanchitGurukul — Technology • Education • Innovation

Discussion

0 approved comments

No approved comments yet. You can start the discussion below.

Leave a Comment

No login is required. Name and email are used for moderation/security. Your email is never displayed publicly. All comments require administrator approval.

This field is not used to determine whether a comment is safe.

Plain text only. File uploads, scripts, executable code, abuse and spam are not accepted.


Discover more from SanchitGurukul

Subscribe to get the latest posts sent to your email.

Keep exploring

Related guides

Namaste! I’m SG Saarthi 👋Need help learning or finding something?