NAT & PAT Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=220
Answer
NAT rewrites IP addresses as packets pass a router, typically so devices with private addresses can reach the Internet. PAT (overload) lets many devices share one public address by also rewriting port numbers.
Remember
A translation is created by traffic going out; replies are matched against it. Without an entry, an incoming packet is dropped — so servers need a static translation. Going out the router routes first, then translates; coming in it translates first. The outside must have a route to the public address.
First checks
show ip nat translations— current entries: inside local, inside global, outside addresses and ports.show ip nat statistics— inside and outside interfaces, hits and misses, pool usage.show running-config | include ip nat— the rules and interface roles.show access-lists <acl>— which traffic is selected for translation.
Commands
clear ip nat translation *ip nat inside source static 10.1.1.10 203.0.113.10ip nat inside source list 1 pool PUBLICip nat inside source list 1 interface GigabitEthernet0/1 overloadip nat insideip nat outsideip nat inside source static tcp 10.1.1.10 443 interface GigabitEthernet0/1 443
Verify in this order
interfaces marked inside and outside → traffic matches the NAT access list → translation entry created → packet leaves with the public address → reply routed back to that address → translated back and delivered
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=220