Use it when inside hosts cannot reach outside, when a server cannot be reached from outside, or when connections fail once many users are active.
NAT & PAT Reference
NAT and PAT checks
Cisco IOS / IOS XE classic NAT. Every translating path needs ip nat inside and ip nat outside on the right interfaces.
| Observed state | Possible cause | Command | Observation and next check |
|---|---|---|---|
| No translations appear | Traffic does not match the NAT ACL or route-map, or inside/outside are not set | show ip nat translations | Entries for the inside local address you are testing. Next: show ip nat statistics: inside and outside interfaces and hit counters. |
| Translations exist but replies fail | No return route to the translated address, or an upstream filter | show ip nat statistics | Hits increase while the session still fails. Next: Check the return route for the global address or pool and any upstream ACL. |
| New sessions fail under load | Dynamic NAT pool exhausted (no overload) | show ip nat statistics | Allocated addresses equal the pool size and misses increase. Next: Use overload (PAT) or a larger pool. |
| NAT does nothing on the expected interface | ip nat inside and outside swapped or missing | show ip nat statistics | Inside and outside interface lists match the design. Next: Correct the interface roles. |
| Static NAT not reachable from outside | Outside ACL, missing route, or no ARP reply for the global address | show ip nat translations | A static entry for the inside global address. Next: Check the outside ACL and that the router answers for the global address. |
Example output and interpretation
Illustrative output · not captured Evidence
Router# show ip nat translations Pro Inside global Inside local Outside local Outside global tcp 203.0.113.5:1024 10.0.10.20:51512 198.51.100.80:443 198.51.100.80:443 --- 203.0.113.10 10.0.10.10 --- ---
Illustrative output: the first line is a PAT translation for one TCP session; the second is a static one-to-one mapping. A translation entry shows that NAT matched the traffic; it does not prove that replies arrive.
Technical sources
Detailed reference and supporting material
Additional explanation, verification and reference tables.
Operational reference
Fast context before you go deeper.
1. show ip nat statistics — are the inside and outside interfaces the right ones?
2. Send traffic, then show ip nat translations — is an entry created?
3. None → the traffic does not match the access list, or the interface roles are wrong.
4. Entry exists, no reply → does the outside have a route back to the inside global address?
5. Server from outside → is there a static translation or port forward?
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
Context & applicabilityCommon mistakes · platform/version boundaries
Additional verification procedures
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Typical faults & boundaries Narrow the fault
- No translation is created. The traffic does not match the access list, or the interfaces are not marked inside and outside — or are marked the wrong way round.
- Outbound works, replies do not arrive. The outside network has no route back to the inside global address.
- Connections fail once many users are active. The pool is exhausted, or without
overloadeach host needs its own address. - A server cannot be reached from outside. No static translation or port forward exists for it.
- Traffic that should not be translated is. The access list is too broad — typically it also matches traffic into a VPN tunnel.
- Long idle sessions drop. The translation timed out; the application needs keepalives or a longer timeout.
- An application connects but part of it fails. It carries addresses in its payload that are not being rewritten.
- A changed NAT rule has no effect. Existing entries still apply; clear them with
clear ip nat translation *in a maintenance window.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
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.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Network address translation (NAT) rewrites IP addresses in packets as they pass through a router. Its main use is letting devices with private addresses reach the Internet through a public address. PAT — port address translation, or "overload" — lets many devices share a single public address by also rewriting port numbers.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Nearly every network edge uses it, and it changes what addresses mean: the address a server sees is not the client's own. Troubleshooting through NAT depends on knowing which address appears where, and on the translation table — the one place that shows what the router is actually doing with each connection.
ReferenceHow it works1 section · depth on demand
How it works
The four address terms.
| Term | Meaning | Example |
|---|---|---|
| Inside local | An inside host's real address | 10.1.1.10 |
| Inside global | The address that host appears as outside | 203.0.113.5 |
| Outside global | An outside host's real address | 198.51.100.20 |
| Outside local | How the outside host appears from inside — normally the same | 198.51.100.20 |
Three kinds of translation.
| Kind | Configuration | Behaviour |
|---|---|---|
| Static | ip nat inside source static 10.1.1.10 203.0.113.10 | One fixed pair, usable in both directions; for servers |
| Dynamic | ip nat inside source list 1 pool PUBLIC | Each inside host gets an address from a pool while it is active |
| PAT (overload) | ip nat inside source list 1 interface GigabitEthernet0/1 overload | All inside hosts share one address; connections are told apart by port |
Interfaces are marked ip nat inside or ip nat outside, and an access list defines which inside addresses are translated.
How PAT keeps track. For every connection the router records the inside address and port, the public address and the port it assigned, and the destination. Replies are matched against that record and translated back. An entry is created by traffic going out; without one, a packet arriving from outside matches nothing and is dropped. That is why inside hosts can open connections outwards but cannot be reached from outside — unless a static entry exists. A single port can be forwarded with ip nat inside source static tcp 10.1.1.10 443 interface GigabitEthernet0/1 443.
Order of operations. Going out, the router routes first and translates afterwards. Coming in, it translates first and then routes. The outside network therefore needs a route to the public address, not the private one.
Timeouts. Entries are removed when idle: after 24 hours for TCP, 5 minutes for UDP and 1 minute for ICMP by default, sooner when a TCP connection closes.
Protocols that carry IP addresses inside their data — FTP, SIP — need the router to rewrite those too, which it does for the common ones.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
NAT and PAT as standardised behaviour
RFC 3022 describes "traditional NAT" and the behaviour most enterprise NAT still follows:
- Basic NAT: maps only addresses.
- NAPT: maps address and port pairs, so many hosts share one address. Cisco calls this PAT.
- Session direction: sessions are normally outbound, from the private network. Inbound sessions need static mappings.
- Bindings: created by the first outbound packet and reused by later sessions from the same address.
- Checksums: NAT must update the IP, TCP, UDP and ICMP checksums. Inside ICMP errors, it must also rewrite the embedded headers.
Basic NAT compared with NAPT (RFC 3022)
| Basic NAT | NAPT (PAT) | |
|---|---|---|
| Translates | IP addresses | IP addresses and TCP/UDP ports (ICMP query IDs) |
| Public addresses needed | One per active inside host | One for many hosts |
| Inbound access | Possible with static bindings | Static port mappings only |
| Typical use | Server publishing, overlapping networks | User Internet access |
What NAT breaks (RFC 3022)
| Problem | Reason | Mitigation |
|---|---|---|
| Protocols carrying addresses in the payload (FTP, SIP) | The payload isn't translated | An ALG; the FTP ALG is part of most NAT implementations |
| Encrypted payloads | An ALG can't rewrite them | Avoid embedded addresses; use NAT traversal |
| IPsec end to end | Address changes break integrity checks (AH) | NAT-T (UDP 4500) for ESP |
| Fragmented NAPT traffic | Only the first fragment has ports | Avoid fragmentation; MTU and MSS tuning |
| Asymmetric routing | All packets of a session must pass the same NAT | Keep paths symmetric |
Timeouts
RFC 3022 leaves binding timeouts to implementations. Typical values are shorter for UDP (minutes) than for TCP (hours, or until FIN or RST). That is why idle UDP applications need keep-alives through NAT.
R1# show ip nat translations verbose | include 10.110.0.64|create|use
R1# show ip nat statistics | include Total|Hits|Misses|Expired
R1# show ip nat translations udp | include :53
R1# debug ip nat detailed
fw# show xlate local 10.110.0.64
Hairpinning and DNS
Inside users reaching a server through its public address need NAT to hairpin, or a DNS view that returns the inside address. Many "works from home but not from the office" problems are exactly this.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → NAT & PAT Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3022.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
NAT / PAT Fast Check
Translation verification flow.
show ip nat translations
show ip nat statistics
Check:
1. inside/outside interface roles
2. match ACL/route-map
3. translation appears
4. outside route exists
5. return packet arrives
6. reverse translation occurs
Translation state alone does not prove application success.