Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

NAT (Network Address Translation)

Direct answer

Network Address Translation (NAT) rewrites IPv4 address identity as traffic crosses a translation boundary. Port Address Translation (PAT), also called NAT overload, additionally uses transport-layer ports or similar identifiers so many flows can share one or a small number of inside-global addresses.

When to use this

Use NAT/PAT when private inside addresses must communicate through a different outside address realm, when a stable one-to-one mapping is required, or when many inside clients must share limited public IPv4 space.

First 30 seconds

1. show ip nat statistics — inside and outside interfaces correct?

2. Generate traffic, then show ip nat translations — entry for the host?

3. No entry → NAT ACL does not match the source (show access-lists), or traffic does not cross inside→outside.

4. Entry but no reply → upstream routing back to the global address, or ISP filtering.

5. clear ip nat translation * after changing rules (it interrupts sessions).

Operational verification

packet enters an ip nat inside interface → matches the NAT rule (ACL/static) → routed out an ip nat outside interface → source rewritten and entry created → reply matches the entry → translated back

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Reversing inside/outside interface roles.
  • Treating the NAT classification ACL as if its only meaning were permit/deny packet filtering.
  • Assuming show ip nat translations shows end-to-end reachability.
  • Forgetting that return traffic must return through compatible translation state.
  • Testing only old sessions after changing NAT configuration.
  • Clearing all translations or enabling debug before collecting read-only evidence.
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE · Cisco IOS XE
Scope / prerequisiteUse NAT/PAT when private inside addresses must communicate through a different outside address realm, when a stable one…
What next?3 suggested next steps
Child topics (this level)4
Evidence1
On this pageJump to a specific section
Technical verification guide · documented only

Check the correct boundary

NAT classification, translation creation, local route and return traffic are distinct boundaries. Inspect an original flow before and after address translation.

Cisco IOS/IOS XE IPv4 NAT command examples. Confirm inside/outside or NVI design and the correct VRF before interpreting output.

Read-only example / checkInterpretationDoes not prove
show ip nat translations
Current IPv4 inside/outside address and port mappings A mapping does not prove return traffic, policy or application delivery
show ip nat statistics
Translation counters and NAT configuration statistics Counters without a controlled flow cannot establish which conversation worked

Official documentation

Documentation reviewed 12 October 2026. These are explanatory reference examples, not observed production state, captured Evidence, or a new stored verification event. Confirm exact software release and scope on the device.

Operational workflow

Verification & Troubleshooting

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

3 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 Verification and output interpretation Verify boundary

Use show ip nat translations while generating one controlled flow to confirm the expected inside-local to inside-global mapping and protocol/port tuple. Use NAT statistics when you need allocation/hit context, and inspect the actual route toward the outside destination and back toward the inside host. For PAT, verify the correct flow rather than assuming any translation row is sufficient. If no translation is created, first distinguish “traffic never reached/matched the NAT rule” from “translation resources or configuration prevented allocation.”

Step 2 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
No translation createdshow ip nat translationsEntry for the test hostInterface inside/outside roles; ACL matches the source
Translation but no replyshow ip nat statisticsHits increase, misses do notOutside routing back to the inside global address
Port exhaustionshow ip nat statisticsAllocated ports per addressAdd addresses to the PAT pool
Static mapping unreachableshow ip nat translationsStatic entry listedOutside firewall/ACL and the server's gateway
Step 3 Where it fails Narrow the fault

Do not infer root cause from one symptom. Packet loss can be physical, L2, routing, policy, NAT, QoS or application-facing; an absent route can originate from adjacency, origination, filtering, best-path or installation; a healthy route does not show adjacency resolution or return path.

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
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Cisco classic terminology distinguishes inside local, inside global, outside local and outside global identities
  • ip nat inside and ip nat outside define the interface roles used by classic inside-source NAT
  • Static NAT provides a persistent one-to-one mapping
  • Dynamic NAT allocates addresses from a pool to matching inside hosts
  • PAT/overload multiplexes many flows by combining an inside-global address with Layer-4 ports or protocol identifiers
  • A translation entry proves local translation state for that tuple; it does not prove routing, firewall/ACL policy, return path or application success
  • NAT is not a security control by itself.
Key checks
  • show ip nat translations — inside local/global and outside addresses (and ports for PAT).
  • show ip nat statistics — inside/outside interfaces, hits, misses and pool use.
  • show running-config | include ip nat — rules, pools and ACL references.
  • show access-lists <nat-acl> — which inside addresses match.
  • debug ip nat — translations as they happen (briefly, with an ACL).
ReferenceWhat it is1 section · depth on demand

What it is

Network Address Translation (NAT) rewrites IPv4 address identity as traffic crosses a translation boundary. Port Address Translation (PAT), also called NAT overload, additionally uses transport-layer ports or similar identifiers so many flows can share one or a small number of inside-global addresses.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use NAT/PAT when private inside addresses must communicate through a different outside address realm, when a stable one-to-one mapping is required, or when many inside clients must share limited public IPv4 space.

ReferenceImportant terms & boundaries4 sections · depth on demand

Key points

  • Inside local: the host's real address. Inside global: the address the outside sees.
  • Mark interfaces ip nat inside and ip nat outside; the NAT ACL matches inside local addresses.
  • PAT (overload) shares one address by changing source ports.
  • Static NAT is two-way: outside hosts can open connections to the inside global address.
  • A translation entry shows that NAT happened, not that the remote side replied.

In depth

NAT rewrites addresses as packets cross from inside to outside

Cisco's IOS XE NAT guide defines four address terms:

TermMeaningExample
Inside localThe inside host's real address10.20.0.64
Inside globalThe address representing the inside host outside203.0.113.10
Outside localAn outside host's address as seen from inside198.51.100.25 (usually unchanged)
Outside globalThe outside host's real, routable address198.51.100.25

Interfaces are marked ip nat inside or ip nat outside, and translation happens as traffic moves between them.

TypeMappingCommand
Static NATOne-to-one, permanentip nat inside source static <local> <global>
Dynamic NATOne-to-one from a pool, as neededip nat inside source list <acl> pool <name>
PAT (overload)Many-to-one using ports… overload
R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# ip nat inside
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# ip nat outside
R1(config)# ip access-list standard NAT-INSIDE
R1(config-std-nacl)# permit 10.20.0.0 0.0.255.255
R1(config)# ip nat inside source list NAT-INSIDE interface GigabitEthernet0/0/0 overload
R1(config)# ip nat inside source static tcp 10.20.10.5 443 203.0.113.10 443
R1# show ip nat translations
Pro  Inside global         Inside local          Outside local         Outside global
tcp  203.0.113.10:443      10.20.10.5:443        ---                   ---
tcp  203.0.113.2:5061      10.20.0.64:51842      198.51.100.25:443     198.51.100.25:443

Documented restrictions

RestrictionDetail
NAT ACLCan't be permit ip any any
PAT protocolsOnly TCP, UDP and ICMP have ports to translate
Interface addressesDon't use an interface's own address in a pool or static rule
Inside and outside mappingsMust not share addresses
CoexistenceNAT, zone-based firewall and WCCP can't be combined
SIPThe SIP ALG on port 5060 is on by default and can affect other applications on that port

Order of operations

On the inside-to-outside path, routing happens before translation, so routes and ACLs on the inside use inside local addresses. Outside-to-inside, translation happens first. Inbound ACLs on the outside interface therefore see inside global addresses.

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.

Concept and state model

Cisco NAT terminology describes addresses relative to the translation boundary: inside local is the original inside-host identity, inside global is the translated identity used externally, and outside local/global describe the outside identity as represented internally/externally. Static NAT creates a persistent mapping, dynamic NAT allocates mappings from a pool, and PAT/overload allows many inside flows to share one or more global addresses by using protocol/port identity. NAT classification depends on interface inside/outside roles plus the configured match/rule. Translation creation and aging are flow/state behavior layered on top of normal routing; the router still needs a valid path toward both sides.

Operational boundaries and common misconceptions

A translation entry shows local translation state, not that the remote service replied. A successful outbound connection also does not show unsolicited inbound reachability unless a specific static/port mapping and security policy allow it. NAT does not automatically solve overlapping address plans across every context, nor does it make private addresses secure. Routing, ACL/firewall behavior, DNS identity and application payloads that embed IP information can all remain independent constraints.

ReferenceConfiguration & state1 section · depth on demand

Configuration model and design choices

Mark the correct interfaces as NAT inside/outside, define the traffic selector precisely and configure the intended static, pool-based or overload rule. The selector should match only traffic that should be translated; overly broad ACLs can translate management, routing or internal traffic unintentionally. Ensure the translated address/pool is routed appropriately on the outside and avoid overlap that makes inside/outside identity ambiguous. For static services, document port/address ownership and any corresponding security policy. NAT is not a substitute for a routing design or firewall policy.

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 IP Services → NAT. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc3022.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE 17.x 17.x

Official Cisco vendor documentation reviewed for bounded reference claims: static/dynamic NAT, overload and inside/outside translation state. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/ip-addressing/b-ip-addressing/m_iadnat-addr-consv-xe.html · confidence 94%
Embedded reference data

Quick lookup tables

NAT terminology

Classic Cisco NAT identity terms without ambiguous private/public shorthand

TermMeaningFast question
Inside localInside host address as represented on the insideWhat address does the inside host actually use?
Inside globalAddress representing the inside host toward the outsideWhat source identity does the outside see?
Outside globalOutside host address as globally knownWhat is the real outside destination identity?
Outside localOutside host address as represented toward the insideIs the outside identity itself translated?
PAT / overloadMany flows share global address space using ports/identifiersWhich translated tuple belongs to this flow?

Static vs Dynamic NAT vs PAT

Choose the mechanism by mapping behavior and capacity

MechanismMappingGlobal address useTypical boundary
Static NATFixed one-to-oneDedicated mappingStable translated identity
Dynamic NATTemporary one-to-one from poolOne pool address per active mapped inside host/state modelPool capacity
PAT / overloadMany-to-one or many-to-fewShared via ports/identifiersTuple/state capacity

NAT · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

NAT termMeaning
Inside localOriginal inside-host address
Inside globalTranslated inside identity visible outside
Static NATPersistent one-to-one (or explicit static service) mapping
Dynamic NATMapping allocated from a pool
PAT/overloadMultiple flows share global identity using ports/protocol
Embedded quick reference

Operational notes

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

PAT overload config skeleton

Translate an inside subnet behind an outside interface address

access-list 10 permit 10.10.10.0 0.0.0.255
!
interface GigabitEthernet0/0
 ip nat inside
!
interface GigabitEthernet0/1
 ip nat outside
!
ip nat inside source list 10 interface GigabitEthernet0/1 overload

Verify the exact flow in show ip nat translations, then separately prove routing and return path.

NAT / PAT troubleshooting cheat sheet

Separate translation from routing and application health

1. Confirm inside/outside interface roles.

2. Verify the flow matches the intended NAT rule/classification.

3. Inspect show ip nat translations for the exact flow.

4. Verify routing before and after translation context.

5. Check return path and application separately.

A translation entry proves local translation state, not end-to-end service success.

NAT/PAT Fast Check

Inside/outside, match, translation og return-path.

30-second flow

1. Verify inside/outside interfaces

2. Verify route before NAT

3. Verify ACL/policy match

4. show ip nat translations

5. show ip nat statistics

6. Check return path

Husk

A translation entry proves NAT state for a flow, not end-to-end application success.

Depth when you need it

Deep reference

Additional depth

NAT identity model

Classic Cisco NAT terminology is easiest to reason about from the perspective of an inside host. Inside local is the inside host address before translation; inside global is the address representing that inside host toward the outside. Outside global is the outside host address in the outside realm. Outside local is how that outside host is represented toward the inside and often equals the outside-global value when the outside address is not translated. Track the exact packet tuple before and after the NAT boundary instead of relying on ambiguous “private/public” wording.

Confirmation

Confirm action

Continue?