Pcornel
Networking · IP Services › NAT

Static NAT

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

Back to the Topic

Answer

Static NAT creates a persistent one-to-one mapping between an inside-local IPv4 address and an inside-global IPv4 address. The mapping is deterministic and does not depend on a dynamic address pool.

Remember

  • Mark the correct inside and outside interfaces first
  • ip nat inside source static <inside-local> <inside-global> defines the one-to-one source mapping
  • The inside-global address must fit the surrounding Layer-3 design and be reachable from the outside side
  • A configured mapping does not prove outside routing/ARP, ACL/firewall policy or the server application is healthy
  • Static NAT consumes the mapped global identity whether or not the application is currently active.

First checks

  • show ip nat translations — inside local/global and outside addresses (and ports for PAT).
  • show ip nat statistics — inside/outside interfaces, hits, misses and pool use.
  • show running-config | include ip nat — rules, pools and ACL references.
  • show access-lists <nat-acl> — which inside addresses match.
  • debug ip nat — translations as they happen (briefly, with an ACL).

Commands

show ip nat translations
Display active NAT/PAT translations.
show ip nat statistics
Shows NAT interfaces, pools, hits/misses and configuration summary.
ip nat inside
Mark the interface as NAT inside.
ip nat outside
Mark the interface as NAT outside.
ip nat inside source static <inside-local> <inside-global>
Create a one-to-one static NAT mapping between inside local and inside global addresses.
ip nat inside source static <local-ip> <global-ip>
ip nat outside source static
ip nat inside source static

Verify in this order

ip nat inside source static <local> <global> → entry always present → outside traffic to the global address → translated to the local address → server replies via the router → translated back

Where it usually breaks

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

Static NAT · operational reference

NAT factMeaning
Static mappingPersistent identity rule
Translation hitTraffic matched rule
Outside routeRemote path exists
Reply/sessionSeparate end-to-end proof

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

Confirmation

Confirm action

Continue?