BuildTheNet

Opening your workspace

Your learning content and tools are loading.

NAT and PAT

show ip nat statistics

Shows NAT counters: active translations, inside and outside interfaces, hits and misses, and the configured rules.

Written by a working field network engineer · CCNA, Security+, CySA+

NAT’s configuration and counters in one place: which interfaces are inside and outside, how many translations are active, and hits versus misses. It is the fastest way to catch an interface marked on the wrong side.

Example output

R1#show ip nat statistics
Total active translations: 4 (0 static, 4 dynamic; 4 extended)
Peak translations: 14, occurred 00:21:40 ago
Outside interfaces:
  GigabitEthernet0/2
Inside interfaces:
  GigabitEthernet0/0
Hits: 18452  Misses: 61
Expired translations: 58
Dynamic mappings:
-- Inside Source
[Id: 1] access-list 1 interface GigabitEthernet0/2 refcount 4

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
Total active translationsCurrent entries, split into static and dynamic; extended means they include ports (PAT).
Outside / Inside interfacesInterfaces marked ip nat outside and ip nat inside.
Hits / MissesPackets that matched an existing translation, and packets that needed a new one created.
Dynamic mappingsThe ip nat inside source rules: which ACL, and which pool or interface address is used.
refcountTranslations currently using that rule.

When it doesn’t look right

An interface is listed on the wrong side, or missing.

Correct ip nat inside / ip nat outside on the interfaces. Both are required for translation to happen.

Misses climb but active translations stay at zero.

Packets match the rule but no translation can be built: with a pool, the pool may be exhausted. Add overload or more addresses.

Related commands

Try it yourself

Learn it in the CCNA path

Topic

NAT and PAT — Translate private addresses at the edge with static NAT, dynamic pools and PAT overload, and read the translation table.

All 57 commands