Networking · Network Devices › Router
NAT (Network Address Translation)
Cheat sheet · https://pcornel.dk/topic.php?topic=848
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 translationsshow ip nat statistics— hits, misses, inside/outsideclear ip nat translation *— reset (careful)
Commands
show ip nat translationsip nat insideshow ip nat statisticsclear ip nat translation *ip nat inside/outsideip 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