Use it when inside hosts cannot reach outside, or NAT translations are missing.
NAT (Network Address Translation) · Router
1. NAT translates addresses (static, dynamic, PAT).
2. ip nat inside/outside on interfaces.
3. ACL defines what to translate.
4. PAT shares one address.
5. Check order of operations with ACLs.
inside packet → NAT rule → translation → outside
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| No translations | show ip nat translations | Entries for the test host | ip nat inside/outside on the right interfaces; ACL matches the inside source |
| Translations but no reply | show ip nat statistics | Hits and misses increasing | Default route to the outside; upstream filtering |
| Server not reachable from outside | show ip nat translations | The static entry is present | Outside ACL/firewall and the server's default gateway |
| Old or wrong mappings | clear ip nat translation * (disruptive) | Fresh entries after the test | Overlapping static and dynamic rules |
Step 2 Common mistakes Narrow the fault
- NAT before routing troubleshooting.
- Missing
ip nat inside/outsideon one interface.
Step 3 Where it fails Narrow the fault
Do not infer root cause from one symptom. Packet loss can be physical, L2, routing, policy, NAT, QoS or application-facing; an absent route can originate from adjacency, origination, filtering, best-path or installation; a healthy route does not show adjacency resolution or return path.
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.
show ip nat translations— active translationsshow ip nat statistics— hits, misses, inside/outsideclear ip nat translation *— reset (careful)
ReferenceWhat it is1 section · depth on demand
What it is
On a router, NAT rewrites addresses between inside and outside interfaces. Common forms:
- PAT (overload): many inside hosts share one outside address; ports keep flows apart.
- Static NAT: one inside address always maps to one outside address, for servers that must be reachable from outside.
- Dynamic NAT: inside addresses take addresses from a pool.
For inside-to-outside traffic, the router routes the packet first and translates it as it leaves the outside interface. The ACL that selects traffic for NAT must match the pre-translation inside addresses.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
NAT on the router
NAT on an edge router translates private inside addresses into public ones. Cisco's IOS XE NAT guide defines the four address views: inside local (the host's private address), inside global (the public address representing it), outside local (an outside host as seen from inside) and outside global (the outside host's real address).
Types (NAT guide)
| Type | Mapping | Use |
|---|---|---|
| Static NAT | One-to-one | A server reachable at a fixed public address |
| Dynamic NAT | Inside addresses to a pool of public addresses | Rare today |
| PAT (overload) | Many inside addresses to one public address, distinguished by port | Internet access for a whole site |
The guide notes PAT supports only ICMP, TCP and UDP, since other protocols have no port numbers.
R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# ip nat inside
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# ip nat outside
R1(config)# ip access-list standard NAT-INSIDE
R1(config-std-nacl)# permit 10.10.0.0 0.0.255.255
R1(config)# ip nat inside source list NAT-INSIDE interface GigabitEthernet0/0/0 overload
R1(config)# ip nat inside source static tcp 10.10.5.20 443 198.51.100.10 443
R1# show ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 198.51.100.10:443 10.10.5.20:443 --- ---
tcp 198.51.100.2:5121 10.10.20.64:5121 142.250.74.46:443 142.250.74.46:443
udp 198.51.100.2:1032 10.10.20.81:51344 8.8.8.8:53 8.8.8.8:53
R1# show ip nat statistics
Rules and timeouts (NAT guide)
| Point | Detail |
|---|---|
| ACL for NAT | Must not be permit ip any any |
| Pools | Don't include the interface's own address |
| Inside and outside mappings | Must not share addresses |
| UDP timeout | 300 s by default |
| TCP timeout | 7440 s by default |
| Simple dynamic entries | Expire after 24 hours idle |
Troubleshooting
| Symptom | Check |
|---|---|
| No translations | ip nat inside/outside on the right interfaces; ACL matches the source |
| Translations but no replies | Return route to the public address; upstream filtering |
| Inbound server unreachable | Static entry, firewall rules, the server's default gateway |
Documented example, not captured output.
Platform, version and operating-envelope scope
Cisco IOS / IOS XE first; ACL/NAT/PBR processing order and hardware offload details vary by platform/release.
Quick reference
Routers commonly perform NAT at the network edge, translating private inside addresses to public addresses. Interfaces are marked ip nat inside or ip nat outside, and rules define static, dynamic or PAT translations.
| Term | Meaning |
|---|---|
| Inside local | Host's real private address |
| Inside global | Its public address after NAT |
| Outside global | Remote host's real address |
| Outside local | Remote address as seen inside (usually unchanged) |
Translation happens after routing for inside-to-outside traffic and before routing for outside-to-inside traffic on IOS.
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
interface GigabitEthernet0/0/1
description LAN
ip nat inside
interface GigabitEthernet0/0/0
description Internet
ip nat outside
!
ip access-list standard NAT-LAN
permit 10.0.0.0 0.0.255.255
ip nat inside source list NAT-LAN interface GigabitEthernet0/0/0 overload
ip nat inside source static 10.0.0.10 203.0.113.10
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 Devices → Router → NAT. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3022.html · confidence 94%