Pcornel
Networking · Network Devices › Router

NAT (Network Address Translation)

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

Back to the Topic

Answer

On a router, NAT translates addresses between inside and outside networks — usually many private addresses to one public address with PAT — and keeps a translation table for return traffic.

Remember

  • Routers commonly perform NAT to translate private addresses to public ones.
  • PAT lets many inside hosts share one public IP.
  • Inside and outside interfaces must be defined.

First checks

  • show ip nat translations — active translations
  • show ip nat statistics — hits, misses, inside/outside
  • clear ip nat translation * — reset (careful)

Commands

show ip nat translations
ip nat inside
show ip nat statistics
clear ip nat translation *
ip nat inside/outside
ip nat outside

Verify in this order

inside packet → NAT rule → translation → outside

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=848

Confirmation

Confirm action

Continue?