Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

NAT & PAT Reference

Direct answer

NAT rewrites IP addresses as packets pass a router, typically so devices with private addresses can reach the Internet. PAT (overload) lets many devices share one public address by also rewriting port numbers.

First checks

NAT and PAT checks

Cisco IOS / IOS XE classic NAT. Every translating path needs ip nat inside and ip nat outside on the right interfaces.

Observed statePossible causeCommandObservation and next check
No translations appearTraffic does not match the NAT ACL or route-map, or inside/outside are not setshow ip nat translations

Entries for the inside local address you are testing.

Next: show ip nat statistics: inside and outside interfaces and hit counters.

Translations exist but replies failNo return route to the translated address, or an upstream filtershow ip nat statistics

Hits increase while the session still fails.

Next: Check the return route for the global address or pool and any upstream ACL.

New sessions fail under loadDynamic NAT pool exhausted (no overload)show ip nat statistics

Allocated addresses equal the pool size and misses increase.

Next: Use overload (PAT) or a larger pool.

NAT does nothing on the expected interfaceip nat inside and outside swapped or missingshow ip nat statistics

Inside and outside interface lists match the design.

Next: Correct the interface roles.

Static NAT not reachable from outsideOutside ACL, missing route, or no ARP reply for the global addressshow ip nat translations

A static entry for the inside global address.

Next: Check the outside ACL and that the router answers for the global address.

Example output and interpretation

Illustrative output · not captured Evidence

Router# show ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
tcp 203.0.113.5:1024   10.0.10.20:51512   198.51.100.80:443  198.51.100.80:443
--- 203.0.113.10       10.0.10.10         ---                ---

Illustrative output: the first line is a PAT translation for one TCP session; the second is a static one-to-one mapping. A translation entry shows that NAT matched the traffic; it does not prove that replies arrive.

Technical sources
Command lookup Jump straight to Cisco syntax
Detailed reference and supporting material

Additional explanation, verification and reference tables.

At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Verificationinterfaces marked inside and outside → traffic matches the NAT access list → translation entry created → packet leaves with the public addr…
Scope / prerequisiteUse it when inside hosts cannot reach outside, when a server cannot be reached from outside, or when connections fail o…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
When to use this

Use it when inside hosts cannot reach outside, when a server cannot be reached from outside, or when connections fail once many users are active.

First 30 seconds

1. show ip nat statistics — are the inside and outside interfaces the right ones?

2. Send traffic, then show ip nat translations — is an entry created?

3. None → the traffic does not match the access list, or the interface roles are wrong.

4. Entry exists, no reply → does the outside have a route back to the inside global address?

5. Server from outside → is there a static translation or port forward?

Operational verification

interfaces marked inside and outside → traffic matches the NAT access list → translation entry created → packet leaves with the public address → reply routed back to that address → translated back and delivered

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
Additional verification procedures
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Typical faults & boundaries Narrow the fault
  • No translation is created. The traffic does not match the access list, or the interfaces are not marked inside and outside — or are marked the wrong way round.
  • Outbound works, replies do not arrive. The outside network has no route back to the inside global address.
  • Connections fail once many users are active. The pool is exhausted, or without overload each host needs its own address.
  • A server cannot be reached from outside. No static translation or port forward exists for it.
  • Traffic that should not be translated is. The access list is too broad — typically it also matches traffic into a VPN tunnel.
  • Long idle sessions drop. The translation timed out; the application needs keepalives or a longer timeout.
  • An application connects but part of it fails. It carries addresses in its payload that are not being rewritten.
  • A changed NAT rule has no effect. Existing entries still apply; clear them with clear ip nat translation * in a maintenance window.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

A translation is created by traffic going out; replies are matched against it. Without an entry, an incoming packet is dropped — so servers need a static translation. Going out the router routes first, then translates; coming in it translates first. The outside must have a route to the public address.

Key checks
  • show ip nat translations — current entries: inside local, inside global, outside addresses and ports.
  • show ip nat statistics — inside and outside interfaces, hits and misses, pool usage.
  • show running-config | include ip nat — the rules and interface roles.
  • show access-lists <acl> — which traffic is selected for translation.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

Network address translation (NAT) rewrites IP addresses in packets as they pass through a router. Its main use is letting devices with private addresses reach the Internet through a public address. PAT — port address translation, or "overload" — lets many devices share a single public address by also rewriting port numbers.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Nearly every network edge uses it, and it changes what addresses mean: the address a server sees is not the client's own. Troubleshooting through NAT depends on knowing which address appears where, and on the translation table — the one place that shows what the router is actually doing with each connection.

ReferenceHow it works1 section · depth on demand

How it works

The four address terms.

TermMeaningExample
Inside localAn inside host's real address10.1.1.10
Inside globalThe address that host appears as outside203.0.113.5
Outside globalAn outside host's real address198.51.100.20
Outside localHow the outside host appears from inside — normally the same198.51.100.20

Three kinds of translation.

KindConfigurationBehaviour
Staticip nat inside source static 10.1.1.10 203.0.113.10One fixed pair, usable in both directions; for servers
Dynamicip nat inside source list 1 pool PUBLICEach inside host gets an address from a pool while it is active
PAT (overload)ip nat inside source list 1 interface GigabitEthernet0/1 overloadAll inside hosts share one address; connections are told apart by port

Interfaces are marked ip nat inside or ip nat outside, and an access list defines which inside addresses are translated.

How PAT keeps track. For every connection the router records the inside address and port, the public address and the port it assigned, and the destination. Replies are matched against that record and translated back. An entry is created by traffic going out; without one, a packet arriving from outside matches nothing and is dropped. That is why inside hosts can open connections outwards but cannot be reached from outside — unless a static entry exists. A single port can be forwarded with ip nat inside source static tcp 10.1.1.10 443 interface GigabitEthernet0/1 443.

Order of operations. Going out, the router routes first and translates afterwards. Coming in, it translates first and then routes. The outside network therefore needs a route to the public address, not the private one.

Timeouts. Entries are removed when idle: after 24 hours for TCP, 5 minutes for UDP and 1 minute for ICMP by default, sooner when a TCP connection closes.

Protocols that carry IP addresses inside their data — FTP, SIP — need the router to rewrite those too, which it does for the common ones.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

NAT and PAT as standardised behaviour

RFC 3022 describes "traditional NAT" and the behaviour most enterprise NAT still follows:

  • Basic NAT: maps only addresses.
  • NAPT: maps address and port pairs, so many hosts share one address. Cisco calls this PAT.
  • Session direction: sessions are normally outbound, from the private network. Inbound sessions need static mappings.
  • Bindings: created by the first outbound packet and reused by later sessions from the same address.
  • Checksums: NAT must update the IP, TCP, UDP and ICMP checksums. Inside ICMP errors, it must also rewrite the embedded headers.

Basic NAT compared with NAPT (RFC 3022)

Basic NATNAPT (PAT)
TranslatesIP addressesIP addresses and TCP/UDP ports (ICMP query IDs)
Public addresses neededOne per active inside hostOne for many hosts
Inbound accessPossible with static bindingsStatic port mappings only
Typical useServer publishing, overlapping networksUser Internet access

What NAT breaks (RFC 3022)

ProblemReasonMitigation
Protocols carrying addresses in the payload (FTP, SIP)The payload isn't translatedAn ALG; the FTP ALG is part of most NAT implementations
Encrypted payloadsAn ALG can't rewrite themAvoid embedded addresses; use NAT traversal
IPsec end to endAddress changes break integrity checks (AH)NAT-T (UDP 4500) for ESP
Fragmented NAPT trafficOnly the first fragment has portsAvoid fragmentation; MTU and MSS tuning
Asymmetric routingAll packets of a session must pass the same NATKeep paths symmetric

Timeouts

RFC 3022 leaves binding timeouts to implementations. Typical values are shorter for UDP (minutes) than for TCP (hours, or until FIN or RST). That is why idle UDP applications need keep-alives through NAT.

R1# show ip nat translations verbose | include 10.110.0.64|create|use
R1# show ip nat statistics | include Total|Hits|Misses|Expired
R1# show ip nat translations udp | include :53
R1# debug ip nat detailed
fw# show xlate local 10.110.0.64

Hairpinning and DNS

Inside users reaching a server through its public address need NAT to hairpin, or a DNS view that returns the inside address. Many "works from home but not from the office" problems are exactly this.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3022

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → NAT & PAT Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc3022.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
natpatoverloadinside localinside globaltranslation
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

NAT / PAT Fast Check

Translation verification flow.

show ip nat translations

show ip nat statistics

Check:

1. inside/outside interface roles

2. match ACL/route-map

3. translation appears

4. outside route exists

5. return packet arrives

6. reverse translation occurs

Translation state alone does not prove application success.

Confirmation

Confirm action

Continue?