Pcornel
Networking · IP Services › NAT

Dynamic NAT

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

Back to the Topic

Answer

Dynamic NAT translates matching inside-local addresses to available inside-global addresses from a configured NAT pool. Each active translation consumes an address from the pool for the lifetime of that translation state.

Remember

  • ip nat pool defines the usable global address range
  • The ACL in this classic configuration classifies which inside source addresses are eligible for translation; it is not acting as a traffic-filter ACL at this NAT classification point
  • ip nat inside source list <acl> pool <pool> binds the classifier to the pool
  • Pool exhaustion can prevent new translations even when routing is healthy
  • Existing translations can make a changed rule appear to behave differently until state ages out or is deliberately cleared.

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

ip nat pool <name> <start> <end> netmask <mask>
Define a pool of global addresses for dynamic NAT.
access-list <number> permit <network> <wildcard>
Define the inside source addresses eligible for dynamic NAT in a numbered ACL.
ip nat inside source list <acl> pool <pool>
Translate inside sources matched by the ACL to addresses from a NAT pool.
ip nat translation timeout
ip nat translation max-entries

Verify in this order

inside host matches the ACL → free pool address allocated one-to-one → translation entry created → reused until timeout → returned to the pool

Where it usually breaks

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

Dynamic NAT · operational reference

Dynamic NAT stateMeaning
Classifier matchSource eligible
Pool freeGlobal address available
Translation activeState allocated
Remote replySeparate service proof

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

Confirmation

Confirm action

Continue?