NAT (Network Address Translation)
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.
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).
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
- Reversing inside/outside interface roles.
- Treating the NAT classification ACL as if its only meaning were permit/deny packet filtering.
- Assuming
show ip nat translationsshows 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.
Operational reference
Fast context before you go deeper.
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 / check | Interpretation | Does 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.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| No translation created | show ip nat translations | Entry for the test host | Interface inside/outside roles; ACL matches the source |
| Translation but no reply | show ip nat statistics | Hits increase, misses do not | Outside routing back to the inside global address |
| Port exhaustion | show ip nat statistics | Allocated ports per address | Add addresses to the PAT pool |
| Static mapping unreachable | show ip nat translations | Static entry listed | Outside 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 · 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.
Subtopics
Go one level deeper into this subject.
Deep reference for persistent one-to-one NAT mappings, inside/outside identity and bidirectional translation evidence.
Subtopic Dynamic NATDeep reference for dynamic NAT pool allocation, classifier matching, translation lifetime and pool capacity.
Subtopic PATDeep reference for NAT overload/PAT tuple multiplexing, translated ports, state capacity and flow identity.
Subtopic TroubleshootingNAT/PAT troubleshooting is most reliable when the exact test flow is followed across routing, interface role, classification, translation creation and return traffic.
- Cisco classic terminology distinguishes inside local, inside global, outside local and outside global identities
ip nat insideandip nat outsidedefine 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.
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.
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 insideandip 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:
| Term | Meaning | Example |
|---|---|---|
| Inside local | The inside host's real address | 10.20.0.64 |
| Inside global | The address representing the inside host outside | 203.0.113.10 |
| Outside local | An outside host's address as seen from inside | 198.51.100.25 (usually unchanged) |
| Outside global | The outside host's real, routable address | 198.51.100.25 |
Interfaces are marked ip nat inside or ip nat outside, and translation happens as traffic moves between them.
| Type | Mapping | Command |
|---|---|---|
| Static NAT | One-to-one, permanent | ip nat inside source static <local> <global> |
| Dynamic NAT | One-to-one from a pool, as needed | ip 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
| Restriction | Detail |
|---|---|
| NAT ACL | Can't be permit ip any any |
| PAT protocols | Only TCP, UDP and ICMP have ports to translate |
| Interface addresses | Don't use an interface's own address in a pool or static rule |
| Inside and outside mappings | Must not share addresses |
| Coexistence | NAT, zone-based firewall and WCCP can't be combined |
| SIP | The 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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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%Quick lookup tables
NAT terminology
Classic Cisco NAT identity terms without ambiguous private/public shorthand
| Term | Meaning | Fast question |
|---|---|---|
| Inside local | Inside host address as represented on the inside | What address does the inside host actually use? |
| Inside global | Address representing the inside host toward the outside | What source identity does the outside see? |
| Outside global | Outside host address as globally known | What is the real outside destination identity? |
| Outside local | Outside host address as represented toward the inside | Is the outside identity itself translated? |
| PAT / overload | Many flows share global address space using ports/identifiers | Which translated tuple belongs to this flow? |
Static vs Dynamic NAT vs PAT
Choose the mechanism by mapping behavior and capacity
| Mechanism | Mapping | Global address use | Typical boundary |
|---|---|---|---|
| Static NAT | Fixed one-to-one | Dedicated mapping | Stable translated identity |
| Dynamic NAT | Temporary one-to-one from pool | One pool address per active mapped inside host/state model | Pool capacity |
| PAT / overload | Many-to-one or many-to-few | Shared via ports/identifiers | Tuple/state capacity |
NAT · reference boundaries
Compact technical reference for the most important state and interpretation boundaries.
| NAT term | Meaning |
|---|---|
| Inside local | Original inside-host address |
| Inside global | Translated inside identity visible outside |
| Static NAT | Persistent one-to-one (or explicit static service) mapping |
| Dynamic NAT | Mapping allocated from a pool |
| PAT/overload | Multiple flows share global identity using ports/protocol |
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.
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.