Pcornel
Networking · IP Services › NAT

Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=661

Back to the Topic

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 command
  • debug ip nat can 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 verbose
ip nat inside
ip nat outside
show access-lists
show running-config
show 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

CueMeaningDoes not prove
Inside local/global pairLocal translated identity existsRemote service health
TCP/UDP ports shownPAT/extended tuple state existsReturn packet arrived
Static entryPersistent mapping is representedOutside route/ARP/policy
Hits increaseNAT subsystem matched/translated trafficEnd-to-end success
No new entry for test flowTranslation was not createdExact 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

Confirmation

Confirm action

Continue?