Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

NAT (Network Address Translation) · Router

Direct answer

On a router, NAT translates addresses between inside and outside networks — usually many private addresses to one public address with PAT — and keeps a translation table for return traffic.

When to use this

Use it when inside hosts cannot reach outside, or NAT translations are missing.

First 30 seconds

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.

Operational verification

inside packet → NAT rule → translation → outside

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse it when inside hosts cannot reach outside, or NAT translations are missing.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
No translationsshow ip nat translationsEntries for the test hostip nat inside/outside on the right interfaces; ACL matches the inside source
Translations but no replyshow ip nat statisticsHits and misses increasingDefault route to the outside; upstream filtering
Server not reachable from outsideshow ip nat translationsThe static entry is presentOutside ACL/firewall and the server's default gateway
Old or wrong mappingsclear ip nat translation * (disruptive)Fresh entries after the testOverlapping static and dynamic rules
Step 2 Common mistakes Narrow the fault
  • NAT before routing troubleshooting.
  • Missing ip nat inside/outside on 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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Routers commonly perform NAT to translate private addresses to public ones.
  • PAT lets many inside hosts share one public IP.
  • Inside and outside interfaces must be defined.
Key checks
  • show ip nat translations — active translations
  • show ip nat statistics — hits, misses, inside/outside
  • clear 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)

TypeMappingUse
Static NATOne-to-oneA server reachable at a fixed public address
Dynamic NATInside addresses to a pool of public addressesRare today
PAT (overload)Many inside addresses to one public address, distinguished by portInternet 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)

PointDetail
ACL for NATMust not be permit ip any any
PoolsDon't include the interface's own address
Inside and outside mappingsMust not share addresses
UDP timeout300 s by default
TCP timeout7440 s by default
Simple dynamic entriesExpire after 24 hours idle

Troubleshooting

SymptomCheck
No translationsip nat inside/outside on the right interfaces; ACL matches the source
Translations but no repliesReturn route to the public address; upstream filtering
Inbound server unreachableStatic entry, firewall rules, the server's default gateway

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

TermMeaning
Inside localHost's real private address
Inside globalIts public address after NAT
Outside globalRemote host's real address
Outside localRemote 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3022

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%
Confirmation

Confirm action

Continue?