LESSON PURPOSE Build a practical understanding of IPv4 Network Address Translation (NAT) and Port Address Translation (PAT), including how Cisco routers translate private inside addresses to globally routable addresses and how static mappings, dynamic address pools, and overload are configured, verified, and troubleshot. |
Lesson Overview
Enterprise networks commonly use private IPv4 addressing internally while Internet-facing traffic requires globally routable addressing. NAT changes IPv4 address information at a boundary router so inside devices can communicate with outside networks while preserving the internal addressing plan.
This lesson compares one-to-one Static NAT, temporary one-to-one Dynamic NAT using a public address pool, and PAT (NAT overload), where many inside hosts share one or a small number of public addresses by using unique Layer 4 port mappings. It also covers NAT terminology, inside/outside interface roles, translation-table behavior, verification, and common failure conditions.
Learning Objectives
• Explain why IPv4 NAT is used and distinguish address translation from normal routing and packet forwarding.
• Identify and interpret inside local, inside global, outside local, and outside global IPv4 addresses.
• Compare Static NAT, Dynamic NAT pools, and PAT/NAT overload, including the mapping behavior and common use case for each.
• Configure Cisco IOS interfaces with ip nat inside and ip nat outside in the correct traffic direction.
• Configure and verify a one-to-one inside-source Static NAT mapping.
• Configure Dynamic NAT by defining the inside source addresses, creating a global address pool, and binding the ACL to the pool.
• Configure PAT using either an outside-interface address or a NAT pool with the overload keyword.
• Explain how PAT distinguishes simultaneous sessions by using transport-layer port numbers and maintains entries in the NAT translation table.
• Verify operation with show ip nat translations, show ip nat statistics, ping, traceroute, and appropriate clear/debug commands when required.
• Troubleshoot common NAT/PAT problems including incorrect inside/outside placement, ACL mismatches, pool exhaustion, missing overload, routing/return-path issues, and stale translations.
CCNA ALIGNMENT — Supports CCNA-level IP services skills by covering inside-source NAT using static mappings and address pools, PAT/overload behavior, and the ability to interpret and verify translations on Cisco IOS. |
1. What is NAT?
Network Address Translation (NAT) lets a router or firewall rewrite the source and/or destination IP address (and often the port) of packets as they cross a boundary — typically between a private internal network and the public internet. NAT was originally developed to conserve public IPv4 addresses, but it also provides a degree of address-hiding and topology obscurity.
Three main flavors are covered here:
Type | Mapping | Address Ratio | Typical Use |
Static NAT | One private IP ↔ one fixed public IP | 1:1 | Servers that must be reachable from outside, such as web, mail, or VPN servers |
Dynamic NAT (Pool) | Private IP ↔ any available public IP from a pool | Many:Many (pool-limited) | Outbound access for a group of hosts sharing a limited public IP pool |
PAT (NAT Overload) | Many private IPs ↔ one public IP, differentiated by port numbers | Many:1 | Typical home/office Internet sharing where many devices use one public IPv4 address |
2. NAT Fundamentals and Why NAT Is Used
Network Address Translation (NAT) changes IPv4 address information as traffic crosses a NAT-capable device, most commonly an enterprise edge router or firewall. Inside-source NAT translates the source address of packets originating from an inside network before those packets are forwarded toward an outside network.
- Conserves public IPv4 addresses by allowing private RFC 1918 networks to communicate with public networks.
- Separates internal addressing from public-facing addressing, allowing enterprises to use private address plans internally.
- Provides predictable public mappings for selected inside services through static NAT.
- Allows temporary one-to-one public address allocation with dynamic NAT pools.
- Allows many simultaneous inside sessions to share one or a few public addresses through PAT (NAT overload).
|
Important: NAT is not a security policy by itself. A firewall/ACL still determines which traffic is permitted. NAT changes addresses and, with PAT, Layer 4 identifiers. |
Figure 2. NAT terminology and the inside/outside address perspectives.
3. NAT Address Terminology
Inside and outside are interface roles
Cisco IOS NAT uses `ip nat inside` and `ip nat outside` on interfaces to identify which side of the translation boundary traffic is entering or leaving. These commands do…
