Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=661
Answer
NAT/PAT troubleshooting is most reliable when the exact test flow is followed across routing, interface role, classification, translation creation and return traffic. show ip nat translations and show ip nat statistics are the primary read-only checkpoints in this source taxonomy.
Remember
- 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.
First checks
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.
Commands
show ip nat translations- Display active NAT/PAT translations.
show ip nat statistics- Shows NAT interfaces, pools, hits/misses and configuration summary.
clear ip nat translation *- Remove all dynamic NAT translations; active sessions using them are interrupted.
debug ip nat- Debug NAT translations as they are created and used; use with care on busy routers.
show ip nat translations verboseip nat insideip nat outsideshow access-listsshow running-configshow ip route <destination>
Verify in this order
exact IPv4 flow → route and inside/outside roles → classifier/rule → translation and counter delta → outside response → reverse translation and client result
Where it usually breaks
packet not reaching NAT → wrong role/classifier → allocation/resource limit → downstream policy/service → return route/translation → endpoint
NAT translation output cues
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=661