Enterprise NAT
Cheat sheet · https://pcornel.dk/topic.php?topic=64
Answer
Enterprise NAT translates inside addresses at the edge: static NAT publishes servers one-to-one, dynamic NAT uses a pool, and PAT (overload) lets many hosts share one address. Interfaces are marked ip nat inside and ip nat outside.
Remember
Translation happens only for traffic moving between an inside and an outside interface. Static entries exist permanently; dynamic and PAT entries are created by traffic. Order on IOS: inside→outside is routed then translated; outside→inside is translated then routed. Clear translations after rule changes.
First checks
show ip nat translations— inside local/global and outside addresses (with ports for PAT).show ip nat statistics— inside/outside interfaces, hits, misses, pool use.show running-config | include ip nat— rules, pools and ACLs.show access-lists <nat-acl>— which sources match.debug ip nat— translations as they happen (briefly).
Commands
ip nat insideip nat outsideip nat inside source static 10.20.0.15 192.0.2.15ip nat inside source static tcp 10.20.0.15 443 192.0.2.15 443ip nat pool P 192.0.2.32 192.0.2.47 prefix-length 28ip nat inside source list 10 pool Pip nat inside source list 10 interface Gi0/0/0 overloadip nat translation timeoutshow ip nat translations
Verify in this order
packet enters an inside interface → matches a NAT rule → routed out an outside interface → source rewritten and entry created → reply matches the entry → translated back
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=64