Use this topic when translations are missing, the wrong address is used, new sessions fail while old ones work, PAT appears exhausted, or a translation exists but end-to-end traffic still fails.
Troubleshooting · NAT
Record one IPv4 flow and expected translated tuple. Read NAT translations/statistics before and after a fresh bounded flow; do not clear existing state.
exact IPv4 flow → route and inside/outside roles → classifier/rule → translation and counter delta → outside response → reverse translation and client result
Verify route/interface path, inside/outside roles and the ACL/static mapping in that order, then repeat one fresh test.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
clear ip nat translation *Primary Commands
Configuration and operational commands for this Topic.
clear ip nat translation *ReferenceRemove all dynamic NAT translations; active sessions using them are interrupted.
Use when: Force translation state to be rebuilt after a justified change/test when session disruption is acceptable.
Quick note: After clearing, generate one controlled flow and observe only the new state.
Cisco IOS / IOS XE · mixeddebug ip natTroubleshootDebug NAT translations as they are created and used; use with care on busy routers.
Use when: Use at the Network Troubleshooting, Ping, Traceroute and Debugging boundary after prerequisite state is verified.
Quick note: Operational guidance. One successful probe does not prove all sources, packet sizes, protocols, directions or times are healthy.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip nat translationsShowDisplay active NAT/PAT translations.
Use when: NAT/PAT verification.
Quick note: Use with show ip nat statistics.
IOS/IOS XE · policyshow ip nat statisticsShowShows NAT interfaces, pools, hits/misses and configuration summary.
Use when: Confirm NAT roles, subsystem activity, rule/pool context and capacity clues.
Quick note: Use it to decide whether the NAT boundary is seeing/matching traffic before clearing state or debugging.
Cisco IOS XE · mixedHow to read the output
show ip nat translationsLook first: inside local/global and outside local/global tuple
Healthy: Translation matches intended source/destination/session.
Warning: No expected entry, wrong pool/address or stale/unexpected mapping.
Does not prove: A translation entry does not prove return traffic or application success.
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 First 30 seconds Verify boundary
Immediate answer: Generate one controlled flow and correlate route, inside/outside roles, rule match, translation and return traffic in time order.
Verification chain: inside packet → route/classification → NAT rule → translation → outside route → return packet → reverse translation → client
Stop condition: A translation entry narrows the failure beyond initial NAT classification but does not show remote service or return-path success.
Step 2 Known-good, broken and proof-boundary verification Verify boundary
Known-good NAT is demonstrated by the expected translation for the exact test tuple, counters increasing on the intended rule, routable translated traffic and successful return through reverse translation. Broken state includes no-match, wrong global/local address, exhaustion or asymmetric return. Record before/after translation state around one controlled flow. A translation table entry does not show Internet reachability, DNS, TCP/TLS or application success; the limit of what it shows is closed only when the original workload succeeds and translation counters behave as expected.
Step 3 NAT closure, negative test and intervention boundary Verify boundary
Illustrative PAT interpretation, not captured device output: a TCP mapping from inside-local 10.10.10.10:49152 to inside-global 192.0.2.10:40001, targeting 198.51.100.20:443, identifies one translation. It does not show the handshake completed. Correlate the exact tuple with the remote response and successful client request.
Close the fault only when the original application flow succeeds in both directions, the expected mapping is observed and an adjacent known-good flow still works. In an isolated lab, test a deliberately non-matching source to show that the selected NAT classifier excludes it; lack of translation alone is not a general security-denial guarantee.
Before any clear/debug intervention, capture relevant state, define affected scope and a stop condition, and preserve the reviewed configuration. A cleared dynamic session cannot be restored by pasting a configuration backup: the endpoint must establish it again. Stop debugging with undebug all when the bounded collection ends. Configuration changes require their own exact rollback and repeat of the original flow.
Examples are authored reference guidance. No device execution, packet capture or new verification date is claimed.
Step 4 NAT: missing translation versus failed return flow Narrow the fault
Follow the same fresh flow through these branches:
1. No matching translation: confirm the packet reaches this router and traverses the intended inside/outside interfaces. Inspect the relevant configuration with show running-config, the exact route with show ip route <destination> and the classifier with show access-lists. A configured NAT rule is not evidence that this flow matches it.
2. Eligible traffic but no allocation: inspect show ip nat statistics for pool usage and allocation limits; distinguish address-pool exhaustion from PAT port/resource limits. Interpret platform-specific counters using the deployed release documentation.
3. Matching translation but no reply: verify the outside route, downstream filtering, remote listener and return route to the translated address. Inspect both sides using an approved bounded capture if table observations cannot locate the break.
4. Reply reaches NAT but the application fails: correlate the reverse tuple, inside route, ACL/firewall state and endpoint response. A successful ping is not a substitute for the original TCP/UDP service test.
Do not clear all translations to make a fresh-flow test. Use a new connection/tuple. If a stale entry is actually implicated, review the release-supported targeted clear and affected sessions before any intervention; it still changes state.
Step 5 Verification & troubleshooting Narrow the fault
1. Record source/destination/protocol/ports and expected translated tuple.
2. Verify routes and the packet actually crosses the intended inside → outside boundary.
3. Verify inside/outside roles and NAT rule/classifier.
4. Generate a fresh flow and inspect translations.
5. Inspect statistics/hits/misses/pool state.
6. Clear state only when justified and with impact understood.
7. Use debug only when read-only evidence cannot isolate the boundary.
8. If NAT is correct, continue to ACL/firewall, remote service and return-path evidence.
Step 6 Evidence-first workflow Narrow the fault
No translation for a fresh matching flow: show routing to the NAT device, inside/outside roles, source classifier and rule reference.
Translation exists but session fails: stop changing NAT and inspect outside route/policy, remote listener and return path for the translated tuple.
Existing clients work but new clients fail: inspect dynamic pool/PAT capacity, state lifetime and counters.
After a configuration change: generate a new test flow; old state can hide or preserve previous behavior. Use clear ip nat translation * only when session impact is acceptable.
Step 7 Failure isolation: observation → implication → next check Narrow the fault
If no translation appears for a known test flow, verify inside/outside interface roles, the pre-NAT source/destination tuple, route/VRF and rule match counters first. If a translation is created but no response returns, inspect outside reachability, upstream filtering and reverse translation. If translations exhaust or flap, inspect pool/PAT capacity and timeout behavior. If only one application fails, compare transport ports and overlapping exemptions/policy NAT. Clear state only when evidence shows stale state is the failing step.
Step 8 Common mistakes Narrow the fault
- Clearing translations during production.
- Looking at NAT before checking routing to the outside.
Evidence · 5 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
After generating one controlled new flow, no corresponding inside-local/global entry appears in the translation table.
command output · Evidence referenceNAT statistics show wrong inside/outside interface roleThe interfaces reported as inside/outside do not match the interfaces used by the intended test path.
command output · Evidence referenceNAT translation exists but application traffic still failsThe exact test tuple appears translated as intended, but the TCP/UDP/application transaction does not complete.
observation · Evidence referenceReturn path bypasses the translating deviceForward traffic crosses the NAT device and is translated, while the reply follows a different path that does not traverse compatible reverse-translation state.
observation · Evidence referenceDebug is reserved for a narrow unresolved translation boundaryRead-only routing, role, classifier, translation and statistics checks have been collected first, then debugging is enabled only for a short controlled test window.
Start from the symptom
Prove the nearest boundary, branch on the observation, and repeat the original test after the minimum controlled change.
Symptom-first flow Expected NAT translation is missing 7 decision steps
First proof
Prove the packet reaches the NAT boundary and matches the intended rule before clearing translations.
Useful read-only checks: show ip nat translations · show ip nat statistics · show access-lists · show ip route
Step 1 Original packet reaches inside boundary Observe → decide
Confirm source/destination and ingress interface.
If healthy: The intended traffic reaches the NAT device.
If broken: Fix upstream VLAN/routing first.
Step 2 Inside/outside roles Observe → decide
Verify NAT interface roles match the traffic direction.
If healthy: Roles align with the intended translation path.
If broken: Correct interface-role design before ACL changes.
Step 3 Classification matches Observe → decide
Check NAT ACL/route-map/policy counters for the controlled flow.
If healthy: The flow matches the intended rule.
If broken: Resolve shadowing/non-match instead of clearing state.
Step 4 Translation is created Observe → decide
Inspect translation/statistics during the controlled test.
If healthy: Expected inside local/global tuple appears.
If broken: Check pool/exhaustion/config semantics.
Step 5 Post-NAT route exists Observe → decide
Verify routing for the translated destination and return path.
If healthy: Translated traffic has a valid path.
If broken: Fix routing rather than NAT if translation exists.
Step 6 Return translation works Observe → decide
Confirm return traffic maps back to the inside host.
If healthy: Bidirectional translation state is consistent.
If broken: Investigate asymmetric return or stateful firewall boundary.
Step 7 Repeat the original application test Observe → decide
Retest the same session without broad clears.
If healthy: Application succeeds with expected translation.
If broken: Translation presence alone is not application proof.
Proof limit
A passing step proves only that boundary; continue until the original symptom is explained and retested.
Recognize the symptom, then prove the boundary
Observed symptom → candidate boundary → discriminating check → original-test closure. A signature narrows the search; it never proves root cause by itself.
Expected NAT translation is not created
Controlled traffic crosses the inside boundary but no expected translation appears.
inside/outside classification · NAT match ACL/policy · routing before NAT path · pool/PAT availability
prove packet reaches NAT device → verify interface roles and match conditions → check route and counters
Missing translation does not automatically prove the NAT rule syntax is wrong.
Repeat the original failing test after the minimum controlled change before calling recovery verified.NAT translation exists but flow still fails
A translation entry is created, yet the original application/test receives no successful return traffic.
return routing · upstream policy/firewall · application/server · asymmetric path
verify outside-leg traffic → prove return route → correlate translation counters with the original flow
A translation entry proves matching/state creation, not end-to-end success.
Repeat the original failing test after the minimum controlled change before calling recovery verified.- No translation usually points first to wrong path/interface roles, non-matching classification, missing rule, or traffic that never reached the NAT boundary
- A translation with no application success moves the boundary downstream to routing, policy, remote service or return path
clear ip nat translation *removes translation state and can disrupt active sessions; it is not a harmless verification commanddebug ip natcan be high-volume and CPU/log intensive; use narrowly and deliberately on production systems- Always distinguish old cached translation state from behavior of a newly generated test flow.
1. Record addresses, protocol/ports, interfaces and time.
2. Check routes, inside/outside roles and NAT classifier.
3. Read show ip nat translations and show ip nat statistics.
4. Generate one fresh application flow and correlate mapping/counter deltas.
5. Follow outside and return traffic if translation exists.
6. Treat clear/debug as separate reviewed interventions; a global clear can interrupt sessions.
ReferenceWhat it is1 section · depth on demand
ReferenceHow it works2 sections · depth on demand
Mechanics, state owner and dependency boundary
NAT processing depends on inside/outside role, route selection, translation rule matching and the creation/use of translation state. Static mappings, dynamic pools and PAT have different allocation behavior, but all require the packet to cross the correct NAT boundary. A translation entry is effective-state evidence for a matched flow, not evidence that the return packet traverses the same device or that an application session succeeds. ACL/route policy can prevent a packet from ever reaching the intended NAT rule.
NAT observations before state changes
Scope: Cisco IOS / IOS XE, traditional IPv4 inside/outside NAT in the global routing table. NVI, VRF-aware NAT and platform-specific hardware paths require their own release documentation.
Record the original source/destination addresses, protocol and ports, expected translated tuple, interfaces and time window. Read show ip nat translations and show ip nat statistics before generating one bounded fresh application flow. Compare the translation and counter delta afterward. Inside local is the inside endpoint address; inside global is its translated identity. A matching entry shows translation state exists, not that a reply reached the client. Check routing and inside/outside interface roles independently; aggregate hits can belong to other traffic.
clear ip nat translation * is a state-changing operation that removes dynamic translations and can interrupt sessions. It is not a read-only diagnostic. debug ip nat also changes operational instrumentation and can create substantial CPU/log load. Keep both outside the initial observation sequence. Preserve the original observations first.
Reference: Cisco IOS XE 17.x NAT monitoring and maintenance.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Troubleshooting NAT: check the translation table first
show ip nat translations shows whether a translation exists, and show ip nat statistics shows hits, misses, pool usage and configured interfaces. Cisco's IOS XE NAT guide documents show ip nat translations verbose, which adds create time, last use and time left for each entry.
R1# show ip nat statistics
R1# show ip nat translations verbose | include 10.20.0.64
tcp 203.0.113.2:51842 10.20.0.64:51842 198.51.100.25:443 198.51.100.25:443
create 00:02:11, use 00:00:03, timeout:7440000, left 02:03:56, Map-Id(In): 1,
R1# clear ip nat translation inside 203.0.113.2 10.20.0.64
R1# clear ip nat translation *
R1# debug ip nat detailed
clear ip nat translation * removes all dynamic translations and breaks every active session. Use the specific form where possible.
Checklist
| Step | Check |
|---|---|
| 1 | ip nat inside and ip nat outside on the correct interfaces (show ip nat statistics lists them) |
| 2 | The NAT ACL matches the source addresses (show access-lists hit counters) |
| 3 | A translation is created when the host sends traffic |
| 4 | Upstream routes the global address back to this router |
| 5 | No ACL on the outside interface blocks the return traffic |
Common causes from the guide's restrictions
| Symptom | Cause |
|---|---|
| Some traffic isn't translated | ACL too narrow, or traffic generated by the router itself |
| Configuration rejected or erratic | permit ip any any in the NAT ACL; interface address used in a pool |
| Outside interface addresses appear in translations | The guide notes this is default; deny the outside interface's subnet in the NAT ACL |
| New users fail while existing ones work | Pool exhausted (allocated 100%) or PAT port exhaustion (drop counters) |
| VoIP or SIP problems | The SIP ALG on port 5060 is on by default |
Asymmetric routing
NAT state exists on one router. If the return traffic comes back through another router or firewall, it has no translation and is dropped. With two Internet routers, keep each flow's outbound and return path on the same device, or use stateful NAT redundancy.
Documented example, not captured output.
Method
NAT troubleshooting checks interface roles, the match criteria and the translation table.
1. Verify ip nat inside and ip nat outside on the correct interfaces.
2. Check the ACL/route map that selects traffic for translation matches the source.
3. Generate traffic and look for a translation: show ip nat translations.
4. Check statistics for misses and pool exhaustion: show ip nat statistics.
5. Confirm the outside network routes the public address back to this router.
6. Use debug ip nat briefly with a filtered ACL.
| Symptom | Likely cause |
|---|---|
| No translation created | Wrong inside/outside, ACL mismatch |
| Translation created, no reply | Return routing or upstream filter |
| Works for some hosts | Pool exhausted (dynamic NAT) |
| Inbound to server fails | Missing static NAT or ACL |
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 → Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3022.html · confidence 94%Quick lookup tables
NAT/PAT troubleshooting flow
Move from path and matching to state, then beyond NAT
| Step | Prove | Evidence |
|---|---|---|
| 1 | Packet should cross this NAT device | RIB/interface/path |
| 2 | Correct interface roles | Running config / show ip nat statistics |
| 3 | Source matches intended rule | ACL + NAT mapping config |
| 4 | New translation is created | show ip nat translations |
| 5 | NAT subsystem sees traffic/capacity | show ip nat statistics |
| 6 | Outside path/policy works | RIB/ACL/firewall/capture |
| 7 | Reply returns through translation | Capture/state |
| 8 | Application responds | TCP/UDP/application evidence |
NAT translation output cues
Interpret common fields without over-inferring
| Cue | Meaning | Does not prove |
|---|---|---|
| Inside local/global pair | Local translated identity exists | Remote service health |
| TCP/UDP ports shown | PAT/extended tuple state exists | Return packet arrived |
| Static entry | Persistent mapping is represented | Outside route/ARP/policy |
| Hits increase | NAT subsystem matched/translated traffic | End-to-end success |
| No new entry for test flow | Translation was not created | Exact cause without role/match/path checks |